PDA

View Full Version : Error on ZCMD


Neil.
16/05/2012, 12:34 PM
Edit: Fixed

Jonny5
16/05/2012, 12:36 PM
the command goes out side all other functions

Neil.
16/05/2012, 12:37 PM
the command goes out side all other functions

So i will not use the OnPlayerCommandText function?

doreto
16/05/2012, 12:38 PM
ZCMD include alone you to place your code were you wont into your gm/fs but not in callbacks/functions or other place

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;
}

omario
16/05/2012, 12:43 PM
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;
}