Errors in script
#1

Solved! Thanks to all!
Reply
#2

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.
Reply
#3

I do not understand what you just said. Could you maybe explain this more?
Reply
#4

I suggest that you take a look at format and SendClientMessage.
Reply
#5

I already looked that over and i cant see what the error is. Please give me some support -.-
Reply
#6

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);
}
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)