24.05.2014, 17:08
Код:
C:\Users\RON\Downloads\american\gamemodes\PastRP.pwn(13445) : error 001: expected token: ")", but found "{" C:\Users\RON\Downloads\american\gamemodes\PastRP.pwn(35100) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
public SpeedCamsTimer(){ new String[256], Float:tmpX, Float:tmpY; for(new i = 0; i < MAX_PLAYERS; i++){ new State = GetPlayerState(i); if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerSpeed(i, true) > 0 && State == PLAYER_STATE_DRIVER){ for(new p = 0; p < MAX_SPEEDCAMS; p++){ tmpX = SpeedCams[p][scx]; tmpY = SpeedCams[p][scy]; GetDirectedXY(2, p, tmpX, tmpY, 5.0, 1); if(IsPlayerInRangeOfPoint(i, 20.0, tmpX, tmpY, SpeedCams[p][scz])){ new CSpeed; CSpeed = GetPlayerSpeed(i, true); if(CSpeed > SpeedCams[p][scmaxspeed] && SpeedCamPlayer[i] == 0){ SpeedCamPlayer[i] = 1; TextDrawShowForPlayer(i, radarTD[i]); SetTimerEx("RemoveRadarTD",1000, false, "i", i); format(String, sizeof(String), "You were cought on speed cam(%d/%d) and you got fined of $1000 by the Government", CSpeed, SpeedCams[p][scmaxspeed]); GiveZaiatMoney(playerid, -1000); SendClientMessage(i, COLOR_RED, String); SetTimerEx("SpeedCamCheck", 5000, false, "d", i); } } } } } }