What is wrong? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What is wrong? (
/showthread.php?tid=577135)
What is wrong? -
Sn4ke2 - 09.06.2015
HELP.
PHP код:
new string[127];
new randfishjob = 5000 + random(1000);
format(string,sizeof(string),"{FFFF00}You received %s$ for your work.",FormatNumber(randfishjob));
SCM(playerid,COLOR_WHITE,string);
GivePlayerCash(playerid,randfishjob);
and warning
PHP код:
Gamelife.pwn(33657) : warning 204: symbol is assigned a value that is never used: "string"
Re: What is wrong? -
Rabea - 09.06.2015
pawn Код:
new randfishjob = 5000 + random(1000), string[128];
format(string,sizeof(string),"{FFFF00}You received %s$ for your work.",FormatNumber(randfishjob));
SCM(playerid,COLOR_WHITE,string);
GivePlayerCash(playerid,randfishjob);
Re: What is wrong? -
Ritzy2K - 09.06.2015
just removed the variable string u declared above.
late
Re: What is wrong? -
Sn4ke2 - 09.06.2015
Done. thanks