Need help again...
#1

Hi, I make the same topic again because the error is not fixed and I can't bump old topics (more than 12 hours)...

So, I have got problem with this script:


Code:

Код:
if(pickupid == Package)

	new str[128],Nick[24]; //Here are errors
	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);
	DestroyPickup(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

I'm not sure with other lines, if there are any "bugs", please fix this

I hope someone will help me, I'm waiting for anwser

Lib

Correct me if I'm wrong here
Reply


Messages In This Thread
Need help again... - by Libra_PL - 25.08.2010, 16:21
Re: Need help again... - by Sascha - 25.08.2010, 16:24
Re: Need help again... - by Libra_PL - 25.08.2010, 16:30
Re: Need help again... - by Claude - 25.08.2010, 16:40
Re: Need help again... - by Libra_PL - 25.08.2010, 16:44
Re: Need help again... - by Doom8890 - 25.08.2010, 16:50
Re: Need help again... - by Libra_PL - 25.08.2010, 16:53
Re: Need help again... - by Flo_White - 25.08.2010, 16:57
Re: Need help again... - by Libra_PL - 25.08.2010, 17:06

Forum Jump:


Users browsing this thread: 2 Guest(s)