27.06.2008, 16:23
hey i dunno if u got it to in pawn a warning
u resolve it with this:
( but soem spaces infront of IF: it may not hit the start line it must have some spaces between start of a line and IF
u resolve it with this:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new newcar = GetPlayerVehicleID(playerid); if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0.0);// Kills The Player return 1; } if (strcmp("/lock", cmdtext, true, 10) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { SetVehicleParamsForPlayer(newcar, i, 0, 1); // This is to lock a car for all players GameTextForPlayer(playerid, "Locked", 1000, 3); } return 1; } if (strcmp("/unlock", cmdtext, true, 10) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { SetVehicleParamsForPlayer(newcar, i, 0, 0); // This is to unlock a car for all players GameTextForPlayer(playerid, "Unlocked", 1000, 3); } return 1; } return 0;