17.01.2015, 01:41
Quote:
C:\Users\Akame\Desktop\(0.3z) USF - Server Pack\gamemodes\usfMain.pwn(993) : error 001: expected token: "{", but found "-identifier-" C:\Users\Akame\Desktop\(0.3z) USF - Server Pack\gamemodes\usfMain.pwn(993) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
Код:
public OnPlayerDisconnect(playerid, reason) { switch (PlayerInfo[playerid][inDMZone]) players_connected--; KillTimer(gOnlineTime); //vehicle DestroyVehicle(PlayerInfo[playerid][pSpawnVehicle]); DestroyVehicle(Veh[playerid][VehId]); PlayerInfo[playerid][pSpawnVehicle] = INVALID_VEHICLE_ID; //---------- if (IsBeingSpeced[playerid] == 1) { for (new i = 0; i < MAX_PLAYERS; i++) { if (spectatorid[i] == playerid) { TogglePlayerSpectating(i, false); } } } if (PlayerInfo[playerid][VIP] >= 1) { Delete3DTextLabel(VIPLabel[playerid]); } SetPlayerHealth(playerid, 100.0); if (PlayerInfo[playerid][Spawned] == 1) { SaveStats(playerid); } //------------------------------ // Notification (Mute System).. //------------------------------ if (PlayerInfo[playerid][Muted] >= 1) { new str[128]; format( str, sizeof(str), ""STEELBLUE"- AS - {%06x}%s(%d) "STEELBLUE"Opuścił serwer z mute - pozostało muta %d seconds.", (GetPlayerColor(playerid) >>> 8), GetName( playerid ), playerid, PlayerInfo[ playerid ][ Muted ] ); for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i) && PlayerInfo[i][Admin] >= 1) { SendClientMessage(i, 0xB0C4DEFF, str); } } } PlayerInfo[ playerid ][ Muted ] = 0; //===================================== new str[128]; format( str, sizeof(str), ""GREY"<"RED"-"GREY"> {%06x}%s(%d) {87CEFA}Wyszedł "GREY"[%d/%d]", (GetPlayerColor(playerid) >>> 8), GetName( playerid ), playerid, players_connected, GetMaxPlayers() ); SendClientMessageToAll( -1, str ); return 1; } stock TimeAndDate () { new year, month, day, hour, minute, sec, last[50]; getdate(year, month, day); gettime(hour, minute, sec); format(last, sizeof(last), "%d:%d:%d | %d/%d/%d", hour, minute, sec, day, month, year); return last; }