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*/ }
enum MyEnum
{
bool: pLoggedIn
}
new PlayerInfo[MAX_PLAYERS][ MyEnum ]; // This is where the PlayerInfo variable gets defined
if(!PlayerInfo[playerid][pLoggedIn])
enum MyEnum { bool: pLoggedIn } new PlayerInfo[MAX_PLAYERS][ MyEnum ]; // This is where the PlayerInfo variable gets defined
public OnPlayerSpawn(playerid) { SetPlayerSkin(playerid, 98) return 1; }
C:\Users\das\Desktop\asd\gamemodes\pinkpanters.pwn(518) : error 001: expected token: ";", but found "return"
return 1;
Код:
public OnPlayerSpawn(playerid) { SetPlayerSkin(playerid, 98) return 1; } Код:
C:\Users\das\Desktop\asd\gamemodes\pinkpanters.pwn(518) : error 001: expected token: ";", but found "return" Код:
return 1; |
SetPlayerSkin(playerid, 98); ///< === forgot this this
Код:
public OnPlayerSpawn(playerid) { SetPlayerSkin(playerid, 98) return 1; } Код:
C:\Users\das\Desktop\asd\gamemodes\pinkpanters.pwn(518) : error 001: expected token: ";", but found "return" Код:
return 1; |