01.04.2010, 14:42
GivePlayerMoney(playerid, 500 + random(200));
Also I changed the code by mistake and shows less errors?
Errors
New line 382 is
else if (GetPlayerWantedLevel(playerid) >= 1)
Also I changed the code by mistake and shows less errors?
Код:
dcmd_rob(playerid,params[]) { if(PlayerVerify == 0) return SendClientMessage(playerid,COLOR_ERROR,"[Error] You must login/register before using commands /login [password] or /register [password]]"); new tmp[256],Index; tmp = strtok(params,Index); if (GetPlayerWantedLevel(playerid) <= 0) SendClientMessage(playerid, COLOR_RED, " [Robbery] You just robbed a bank and you are wanted now"); GivePlayerMoney(playerid, 500 + random(200)); else if (GetPlayerWantedLevel(playerid) >= 1) SendClientMessage(playerid, COLOR_RED, " [Robbery] You can't rob a bank, you are wanted"); return 1; }
Код:
C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : error 029: invalid expression, assumed zero C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : warning 215: expression has no effect C:\Counter-Strike 2D\BlueberryFR\gamemodes\SFFreeroam3.0.pwn(382) : error 001: expected token: ";", but found "if"
else if (GetPlayerWantedLevel(playerid) >= 1)