/setname crashes the server
#4

Quote:
Originally Posted by DetoNater
Посмотреть сообщение
Fine bro it worked , btw what is my mistake in the script i'd like to learn from it
Код:
if(sscanf(params, "u", targetid, inputtext)) return SendClientMessage(playerid, C_GREY, "USAGE: /setname [playerid] [new name]");
Should be
Код:
if(sscanf(params, "us[25]", targetid, inputtext)) return SendClientMessage(playerid, C_GREY, "USAGE: /setname [playerid] [new name]");
The 's' stands for string, which is inputtext and the [25] is the length of it.
Reply


Messages In This Thread
/setname crashes the server - by DetoNater - 10.06.2013, 13:10
Re: /setname crashes the server - by Sascha - 10.06.2013, 13:58
Re: /setname crashes the server - by DetoNater - 10.06.2013, 16:03
Re: /setname crashes the server - by moadi - 10.06.2013, 18:23
Re: /setname crashes the server - by Sascha - 10.06.2013, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)