25.11.2010, 21:54
Hello, i was wondering if anyone knows how to fix this, i made this up of the top of my head... i get no errors!
For example of what supposed to happed... /fix Sends a message "Your *Elegy* has been successfully repaired!"
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/fix", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "Not in a vehicle!");
new vName = GetPlayerVehicleID(playerid);
new string[128];
RepairVehicle(GetPlayerVehicleID(vName));
format(string, sizeof(string), "%s Has been fixed!", vName);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
return 0;
}