[Ajuda] erro compilar
#5

Fiz em ZCMD + sscanf
Adapte para o seu GM.

PHP Code:
CMD:setpos(playeridparams[]) {
    new 
id;
    new 
Float:p[3];
    if(
sscanf(params"iiii"idp[0], p[1], p[2])) {
        
SendClientMessage(playerid,-1,"(Erro) Use: /setpos [ID] [X] [Y] [Z]");
    }
    if(
id == INVALID_PLAYER_ID) {
        
SendClientMessage(playerid,-1,"(Erro) ID Invбlido");
    }
    else {
        
SetPlayerPos(id,p[0], p[1], p[2]);
        
SendClientMessage(playerid, -1"*Posiзгo setada com sucesso.");
    }
    return 
1;

Reply


Messages In This Thread
erro compilar - by Aranha - 05.07.2020, 16:03
Re: erro compilar - by k2bi - 05.07.2020, 16:06
Re: erro compilar - by Aranha - 05.07.2020, 16:09
Re: erro compilar - by k2bi - 05.07.2020, 16:13
Re: erro compilar - by Sants - 05.07.2020, 16:18
Re: erro compilar - by Aranha - 05.07.2020, 16:27
Re: erro compilar - by ipsLuan - 06.07.2020, 00:31

Forum Jump:


Users browsing this thread: 2 Guest(s)