[Ajuda] isnull
#4

Exemplo de /all [texto]
pawn Код:
CMD:all(playerid,params[])
{
    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid,-1,"*Vocк nгo й admin!");
    new tString[128], nome[24];
    if(isnull(params))
        return SendClientMessage(playerid,-1,"use: /all [texto]");
    GetPlayerName(playerid,nome,24);
    format(tString,sizeof(tString),"Admin %s : %s",nome, params);
    SendClientMessageToAll(-1,tString);
    return true;  
}
Params й o que vem depois..
Como sу tem 1 paramкtro no comando, nгo й necessario usar sscanf
Reply


Messages In This Thread
[Ajuda] isnull - by histire - 03.01.2012, 16:06
Re: [duvida] isnull - by Ricop522 - 03.01.2012, 16:33
Re: [duvida] isnull - by histire - 03.01.2012, 16:34
Re: [duvida] isnull - by Ricop522 - 03.01.2012, 16:53
Re: [duvida] isnull - by histire - 03.01.2012, 16:57
Re: [duvida] isnull - by Lуs - 03.01.2012, 17:24
Re: [duvida] isnull - by histire - 03.01.2012, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)