Error on ZCMD
#1

Edit: Fixed
Reply
#2

the command goes out side all other functions
Reply
#3

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
the command goes out side all other functions
So i will not use the OnPlayerCommandText function?
Reply
#4

ZCMD include alone you to place your code were you wont into your gm/fs but not in callbacks/functions or other place

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 1;
}
CMD:detach(playerid, params[])
{
    new var0 = 0;
    var0 = GetPlayerVehicleID(playerid);
    DetachTrailerFromVehicle(var0);
    SendClientMessage(playerid, 0x00FF00FF, "Trailer Detached");
    return 1;
}
Reply
#5

put it out of OnPlayerCommandText



Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}  

CMD:detach(playerid, params[])
   {
        new var0 = 0;
        var0 = GetPlayerVehicleID(playerid);
        DetachTrailerFromVehicle(var0);
        SendClientMessage(playerid, 0x00FF00FF, "Trailer Detached");
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)