31.05.2009, 02:41
Since I've modified part an engine code to this, Pawn crashes when compiling.
Код:
if(PlayerInfo[playerid][pMaskuse] == 1) { new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); format(string, sizeof(string), "* Stranger attempts to start the vehicles engine", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",3500,0,"i",playerid); GameTextForPlayer(playerid, "~w~Starting vehicle engine...",3500,3); gEngine[playerid] = 1; return 1; } else { new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s attempts to start the vehicles engine", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetTimerEx("StartingTheVehicle",3500,0,"i",playerid); GameTextForPlayer(playerid, "~w~Starting vehicle engine...",3500,3); gEngine[playerid] = 1; } } return 1; }