This is crashing pawno, help please?
#3

https://sampwiki.blast.hk/wiki/Dcmd
https://sampwiki.blast.hk/wiki/Sscanf
https://sampwiki.blast.hk/wiki/Fast_Commands

OnPlayerCommandText()
pawn Код:
dcmd(o,1,cmdtext);
Somewhere in your source (not in a function)
pawn Код:
dcmd_o(playerid, params[])
{
    new txt[128], string[128];
    if (sscanf(params,"s", txt)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /o [text]");
    if (strlen(txt) > 128) return SendClientMessage(playerid, 0xFFFFFFAA, "WARNING: Your input cannot be longer then 128 characters.");
    format(string, sizeof(string), "OOC: %s: %s", GetPlayerNameEx(playerid), txt);
    SendClientMessageToAll(COLOR_BLUE,string);
    return 1;
}
Reply


Messages In This Thread
This is crashing pawno, help please? - by Memoryz - 25.08.2009, 19:48
Re: This is crashing pawno, help please? - by cozza123456 - 26.08.2009, 17:38
Re: This is crashing pawno, help please? - by woot - 26.08.2009, 17:51
Re: This is crashing pawno, help please? - by cozza123456 - 26.08.2009, 17:53
Re: This is crashing pawno, help please? - by woot - 26.08.2009, 17:56
Re: This is crashing pawno, help please? - by cozza123456 - 26.08.2009, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)