[Ajuda] Hб algo errado ?
#9

Pra usar o que o Cristhian postou vocк precisa de sscanf

pawn Код:
if(!strcmp(cmd, "/irpara"))
{
    if(PlayerInfo[playerid][pAdmin] == 5000)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /irpara [X] [Y] [Z]");

        new Float:X,Float:Y,Float:Z;

        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
        X = strval(tmp);

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
        Y = strval(tmp);

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GREY, "USAGE: /irpara [X] [Y] [Z]");
        Z = strval(tmp);
       
        SetPlayerPos(playerid, X, Y, Z);
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Hб algo errado ? - by Xpectro - 29.11.2011, 23:14
Re : [Ajuda] Hб algo errado ? - by GabrielDias_Invision - 29.11.2011, 23:19
Re: [Ajuda] Hб algo errado ? - by ViniBorn - 29.11.2011, 23:21
Re: Re : [Ajuda] Hб algo errado ? - by Xpectro - 29.11.2011, 23:34
Re: [Ajuda] Hб algo errado ? - by ViniBorn - 29.11.2011, 23:41
Re: [Ajuda] Hб algo errado ? - by Cristhian - 29.11.2011, 23:44
Re: [Ajuda] Hб algo errado ? - by Xpectro - 29.11.2011, 23:48
Re: [Ajuda] Hб algo errado ? - by Cristhian - 29.11.2011, 23:49
Re: [Ajuda] Hб algo errado ? - by ViniBorn - 29.11.2011, 23:51
Re: [Ajuda] Hб algo errado ? - by Xpectro - 30.11.2011, 00:12

Forum Jump:


Users browsing this thread: 1 Guest(s)