Quote:
Originally Posted by iggy1
pawn Код:
// Hotwire if(strcmp(cmdtext, "/hotwire", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] == 5) { if(IsPlayerInAnyVehicle(playerid)) { new timestamp = GetTickCount(); LastHW[playerid] = timestamp;
if(timestamp - LastHW[playerid] < 5000) { SendClientMessage(playerid, COLOR_RED, "Your trying to hotwire it."); SetTimerEx("HotwireSucces", 5000, 0, "i", playerid); } } } } return 1; }
Try that
|
Hmm? Whats new about this code is nothing but the indentation (i think) ... Doubting that would fix an error.
Edit: my bad thought it was the same one as b4 :P try this?