Errors in script - 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: Errors in script (
/showthread.php?tid=446614)
Errors in script [SOLVED!] -
Mafiaday - 26.06.2013
Solved! Thanks to all!
Re: Errors in script -
Deathstalker - 26.06.2013
Regarding "Error code : (22360)", you can't format a string using SendClientMessage, you could use format or something instead on a string variable. Also, you didn't provide any color on the second SendClientMessage. Reply here again if my solution worked for you or if you need further explanation.
Re: Errors in script -
Mafiaday - 26.06.2013
I do not understand what you just said. Could you maybe explain this more?
Re: Errors in script -
Deathstalker - 26.06.2013
I suggest that you take a look at
format and
SendClientMessage.
Re: Errors in script -
Mafiaday - 26.06.2013
I already looked that over and i cant see what the error is. Please give me some support -.-
Re: Errors in script -
megadreams - 26.06.2013
This should fix the error on line 22360:
Код:
if(goonZ > (canhazbuy-PlayerInfo[playerid][guns]))
{
new str[40];
format(str,sizeof(str),"You can buy maximum of %d guns!",(canhazbuy-PlayerInfo[playerid][guns]))
return SendClientMessage(playerid, COLOR_RED, str);
}
Re: Errors in script -
Mafiaday - 26.06.2013
Quote:
Originally Posted by megadreams
This should fix the error on line 22360:
Код:
if(goonZ > (canhazbuy-PlayerInfo[playerid][guns]))
{
new str[40];
format(str,sizeof(str),"You can buy maximum of %d guns!",(canhazbuy-PlayerInfo[playerid][guns]))
return SendClientMessage(playerid, COLOR_RED, str);
}
|
Thanks
Still stuck with the (25329) error any suggestions?
Thanks,
Mafiaday