25.08.2015, 14:52
i was try to compiling something , and i got an error can someone help me to fix it
The Code :
Error :
Line (367) >>
The Code :
PHP Code:
public Robbery(playerid)
{
new string[256];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
{
if(Robbed[playerid] == 0);
{
if(IsPlayerInRangeOfPoint(playerid, 5,2208.1985,-1072.3022,1050.4766))
{
new Earning = 500 + random(500);
format(string, sizeof(string), "%s Robbed %d from The Tatto Shop", Name(playerid), Earning);
SendClientMessageToAll(COLOR_GREY,string);
SendClientMessage(playerid, COLOR_RED, "Rob Complete");
GivePlayerMoney(playerid,Earning);
Robbed[playerid] = 1;
SetTimerEx("AbleRobbing", 30000, false, "i", playerid);
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
SetPlayerScore(playerid,GetPlayerScore(playerid)+2);
}
}
}
}
Code:
C:\Users\ma\Downloads\fp.pwn(367) : error 036: empty statement
Code:
if(Robbed[playerid] == 0);