23.01.2010, 10:34
Thanks, it's compiled and working now
One last thing:
Those are my two little commands, /kill works but /r doesn't, it always says that I'm not in a vehicle, even though I am when I try use it. Not sure how to fix that
Halp plz
One last thing:
Код:
public OnPlayerCommandText(playerid, cmdtext[0]) { { if (strcmp("/kill", cmdtext, true, 5) == 0) { SetPlayerHealth(playerid, 0.0); return 1; } if (strcmp("/r", cmdtext, true)) { new vehicleid = GetPlayerVehicleID(playerid); RepairVehicle(vehicleid); return 1; } else { return SendClientMessage(playerid,COLOR_RED, "You're not in a vehicle!"); } } return 1; //EDIT: I keep getting an unreachable code warning here. Why is it saying that? }
Halp plz