[SOLVED] Overflow problem...
#1

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

-
Reply
#3

Quote:
Originally Posted by HydraX
-
?
Reply
#4

Thank you, it works great.
Reply
#5

Quote:
Originally Posted by zєяσмαиѕтєя
Quote:
Originally Posted by HydraX
-
?
I read the complete topic but i relized i made a mistake
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)