One Error-----------> Unfriend Symbol >Cost< in last line (if else)
Can u plz fix it?
[pawn][/pawn]else if ( strcmp( cmd, "!heal", true ) == 0 )
{
new Float:Health; GetPlayerHealth( playerid, Health );
if ( strcmp( GetPlayerLocation( playerid ), "Hospital-Vice-Point-Vice-City-Beach", true ) == 1 ) SendClientMessage( playerid, COLOR_GREEN, "Pm>>>Go To Drug Store For Health." );
else if ( Health >= 100 ) SendClientMessage( playerid, COLOR_GREEN, "Pm>>>You are healthy." );
else if ( GetPlayerHandCash( gPlayers[ playerid ] ) < cost ) SendClientMessage( playerid, COLOR_GREEN, "You Don't Have Enough Cash" );
else
{
SetPlayerHealth( playerid, 100.0 );
DecPlayerHandCash( playerid, 5000 );
SetTimer( "HealthTimer",5000,1);
SendClientMessage( playerid, COLOR_GREEN, "Successfully Healed." );
}
return 1;
}