Need help...
#1

Well, I was trying to make a Hidden Package script... But I something fucked up, now can anyone help me?

Код:
new str[128],Nick[24]; //Here is the error...
	GetPlayerName(playerid,Nick,24);
	new Cash = (random(30)+20)*5000;
	format(str,128,"~b~Player ~r~%s ~b~found hidden package and won ~g~%d$!",Nick,Cash);
	GameTextForAll(params[(strlen(tmp)+strlen(tmp2)+2)], strval(tmp2), strval(tmp));
	GivePlayerMoney(playerid,Cash);
	DestroyObject(Package);
	Package=0;
	}
Errors:

...\filterscripts\Adminscript.pwn(497 : error 003: declaration of a local variable must appear in a compound block
...\filterscripts\Adminscript.pwn(497 : error 017: undefined symbol "str"
...\filterscripts\Adminscript.pwn(497 : warning 215: expression has no effect
...\filterscripts\Adminscript.pwn(497 : error 001: expected token: ";", but found "]"
...\filterscripts\Adminscript.pwn(497 : fatal error 107: too many error messages on one line

Anyway, thanks for the help...

Lib
Reply


Messages In This Thread
Need help... - by Libra_PL - 24.08.2010, 14:20
Re: Need help... - by Vince - 24.08.2010, 14:28
Re: Need help... - by playbox12 - 24.08.2010, 14:29
Re: Need help... - by Vince - 24.08.2010, 14:33
Re: Need help... - by playbox12 - 24.08.2010, 14:34
Re: Need help... - by Libra_PL - 24.08.2010, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)