11.01.2016, 20:14
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkpanters.pwn(509) : error 017: undefined symbol "PlayerInfo" C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkpanters.pwn(509) : warning 215: expression has no effect C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkpanters.pwn(509) : error 001: expected token: ";", but found "]" C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkpanters.pwn(509) : error 029: invalid expression, assumed zero C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkpanters.pwn(509) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if(!PlayerInfo[playerid][pLoggedIn])
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerVirtualWorld(playerid, 973942); if(IsPlayerNPC(playerid)) {SetPlayerVirtualWorld(playerid, 0); SpawnPlayer(playerid); return 1;} if(!PlayerInfo[playerid][pLoggedIn]) { SetPlayerPos(playerid, 194.485778, 1103.993408, 16.347635); SetPlayerCameraPos(playerid, 194.485778, 1103.993408, 16.347635); SetPlayerCameraLookAt(playerid, 194.485778, 1103.993408, 16.347635); SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); // Without this you'll be kicked when you spawn. Set it to wherever you want. TogglePlayerSpectating(playerid, true); SetTimerEx("login_dialog", 100, 0, "i", playerid); new file[64]; format(file, sizeof(file), "users/%s.ini", RPNU(playerid)); // Player isn't banned if(dini_Int(file, "AdminAccount") == 1) { format(file, sizeof(file), "users/%s.ini",RPNU(playerid)); SetPlayerName(playerid, dini_Get(file, "OldName")); format(file, sizeof(file), "users/%s.ini", RPNU(playerid)); SSSShowDialog(playerid, 2); } if(!dini_Exists(file)) { ShowPlayerDialog(playerid, 2000, DIALOG_STYLE_LIST, "What does DM stands for? ", "Durty mail\nDeathMatching\nWeapon", "Select", "Exit"); return 1; } else { SSSShowDialog(playerid, 2); } return 1; } else { SetPlayerPos(playerid, 194.485778, 1103.993408, 16.347635); SetPlayerCameraPos(playerid, 194.485778, 1103.993408, 16.347635); SetPlayerCameraLookAt(playerid, 194.485778, 1103.993408, 16.347635); SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); // Without this you'll be kicked when you spawn. Set it to wherever you want. TogglePlayerSpectating(playerid, true); SetTimerEx("login_dialog", 100, 0, "i", playerid); SpawnPlayer(playerid); } return 1; } /forward login_dialog(playerid); public login_dialog(playerid) { SetPlayerCameraPos(playerid, 194.485778, 1103.993408, 16.347635); SetPlayerCameraLookAt(playerid, 194.485778, 1103.993408, 16.347635); // Show dialogs etc. here ClearChat(playerid); // Custom macro to send some empty clientmessages return 1; }z*/ }