[SOLVED] Overflow problem... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Overflow problem... (
/showthread.php?tid=116004)
[SOLVED] Overflow problem... -
Zeromanster - 27.12.2009
So i got this command:
pawn Код:
cmd(me, playerid, params[])
{
if(IsPlayerConnected(playerid) && PlayerLoggedIn[playerid])
{
new thing[70];
if(sscanf(params, "s",thing))
{
SendClientMessage(playerid, COLOR_HELP, "USAGE: /me [thing]");
return 1;
}
PlayerActionMessage(playerid,10.0,thing);
}
return 1;
}
I wanted the "thing" to be limited to 70 characters and if it passes 70 characters message would show but it would be missing some characters...
But this happens, it passes 70 characters and it just says UNKNOWN COMMAND...
How can i fix this ? Thank you.
Re: Overflow problem... -
HydraX - 27.12.2009
-
Re: Overflow problem... -
Zeromanster - 27.12.2009
Quote:
|
Originally Posted by HydraX
-
|
?
Re: Overflow problem... -
Zeromanster - 27.12.2009
Thank you, it works great.
Re: Overflow problem... -
HydraX - 27.12.2009
Quote:
|
Originally Posted by zєяσмαиѕтєя
Quote:
|
Originally Posted by HydraX
-
|
? 
|
I read the complete topic but i relized i made a mistake