[HELP] Whats wrong?
#4

GivePlayerMoney(playerid, 500 + random(200));

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;
	}
Errors
Код:
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"
New line 382 is

else if (GetPlayerWantedLevel(playerid) >= 1)
Reply


Messages In This Thread
[HELP] Whats wrong? - by Thrarod - 01.04.2010, 14:14
Re: [HELP] Whats wrong? - by Thrarod - 01.04.2010, 14:26
Re: [HELP] Whats wrong? - by [MWR]Blood - 01.04.2010, 14:28
Re: [HELP] Whats wrong? - by Thrarod - 01.04.2010, 14:42
Re: [HELP] Whats wrong? - by Last_Stand_Guardian - 01.04.2010, 15:03
Re: [HELP] Whats wrong? - by Thrarod - 01.04.2010, 15:15
Re: [HELP] Whats wrong? - by Last_Stand_Guardian - 01.04.2010, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)