[Ajuda] Parametros..
#5

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Use sscanf
pawn Код:
else if(!strcmp(cmdtext, "/msg", true))
{
    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, COR_VERMELHO, "[INFO] Vocк nгo й um admin.");

    new VBString[80];
    if(sscanf(params, "s[80]", VBString))
        return SendClientMessage(playerid, -1, "[INFO] Use: /msg [texto]");

    GetPlayerName(playerid, name, sizeof(name));
    new MSGAdmin[128];
    format(MSGAdmin, sizeof(MSGAdmin), "{1E90FF}[Administrador %s]{FFFFFF} %s", name, VBString);
    SendClientMessageToAll(COR_VERDECLARO, MSGAdmin);
}
Isso nгo vai dar certo acho que sem zcmd nгo
Reply


Messages In This Thread
[Ajuda] Parametros.. - by ChrisRock - 02.06.2012, 15:18
Re: [Dъvida] Parametros.. - by ViniBorn - 02.06.2012, 15:27
Re: [Dъvida] Parametros.. - by Don_Speed - 02.06.2012, 15:29
Re: [Dъvida] Parametros.. - by Schocc - 02.06.2012, 15:32
Re: [Dъvida] Parametros.. - by Schocc - 02.06.2012, 15:34
Re: [Dъvida] Parametros.. - by ChrisRock - 02.06.2012, 15:39
Re: [Dъvida] Parametros.. - by CidadeNovaRP - 02.06.2012, 16:03
Re: [Dъvida] Parametros.. - by ViniBorn - 02.06.2012, 16:47
Re: [Dъvida] Parametros.. - by Schocc - 02.06.2012, 16:58
Re: [Dъvida] Parametros.. - by CidadeNovaRP - 02.06.2012, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)