02.01.2011, 03:21
i just copied this command and put it in a script real quick and it worked, are you sure its not in any callbacks like
BAD EXAMPLE:
GOOD EXAMPLE
You sure its the good example?
BAD EXAMPLE:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:fixvehicle(playerid, params[])
{
#pragma unused params
new vid = GetPlayerVehicleID(playerid);
RepairVehicle(vid);
SendClientMessage(playerid, COLOR_WHITE, "NOTE » Your vehicle has been repaired!");
return 1;
}
return 0;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
COMMAND:fixvehicle(playerid, params[])
{
#pragma unused params
new vid = GetPlayerVehicleID(playerid);
RepairVehicle(vid);
SendClientMessage(playerid, COLOR_WHITE, "NOTE » Your vehicle has been repaired!");
return 1;
}