12.03.2013, 16:45
Код:
public OnPlayerSpawn(playerid) { // Anti F4 Bug - Logging/Registering if(!PlayerInfo[playerid][pLoggedIn]) { SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506); SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506); SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506); SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); new file[64]; format(file, sizeof(file), "taikhoan/%s.ini", RPNU(playerid)); // Player isn't banned if(!dini_Exists(file)) { ShowDialog(playerid, 1); return 1; } else { ShowDialog(playerid, 2); } return 1; }
Quote:
VNSLRP.pwn(159) : error 017: undefined symbol "PlayerInfo" VNSLRP.pwn(159) : warning 215: expression has no effect VNSLRP.pwn(159) : error 001: expected token: ";", but found "]" VNSLRP.pwn(159) : error 029: invalid expression, assumed zero VNSLRP.pwn(159) : fatal error 107: too many error messages on one line |
Код:
enum pInfo { // Temp Values pLoggedIn, pSpawn, // Permanent Values pIP[16], pLevel, pMinutes, pHours, pGender, pAge, pAdmin, pBanned, } new PlayerInfo[MAX_PLAYERS][pInfo];