/newbie command help
#6

@kiss
now it says undefined symbol result
@spedico
Quote:
Originally Posted by spedico
Посмотреть сообщение
Код:
if(!strcmp(cmdtext, "/newbie", true))
{
    new string[128], sendername[MAX_PLAYER_NAME], text[64];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "[NEWBIE]: Newbie %s: %s", sendername, text);
    SendClientMessageToAll(-1, string);
    return 1;
}
That would be right I guess. Except that you don't have any "method" to read the params. So it would just send a blank message.
now when i do /newbie it works but if i putted my text like /newbie hi it says unknown cmd
Reply


Messages In This Thread
/newbie command help - by marwan - 02.04.2011, 08:16
Re: /newbie command help - by kiss - 02.04.2011, 08:17
Re: /newbie command help - by marwan - 02.04.2011, 08:19
Re: /newbie command help - by kiss - 02.04.2011, 08:21
Re: /newbie command help - by spedico - 02.04.2011, 09:44
Re: /newbie command help - by marwan - 02.04.2011, 15:37
Re: /newbie command help - by armyoftwo - 02.04.2011, 15:48
Re: /newbie command help - by SchurmanCQC - 02.04.2011, 15:49
Re: /newbie command help - by marwan - 02.04.2011, 15:57
Re: /newbie command help - by marwan - 03.04.2011, 11:28

Forum Jump:


Users browsing this thread: 2 Guest(s)