PDA

View Full Version : I don't see any shit wrong


Gangster-rocks
18/07/2012, 01:33 PM
WTF C:\Documents and Settings\HP\Desktop\lololololololololol\gamemodes\ lol3.pwn(304) : error 017: undefined symbol "gPlayerInfo"
C:\Documents and Settings\HP\Desktop\lololololololololol\gamemodes\ lol3.pwn(304) : warning 215: expression has no effect
C:\Documents and Settings\HP\Desktop\lololololololololol\gamemodes\ lol3.pwn(304) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\HP\Desktop\lololololololololol\gamemodes\ lol3.pwn(304) : error 029: invalid expression, assumed zero
C:\Documents and Settings\HP\Desktop\lololololololololol\gamemodes\ lol3.pwn(304) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

i am trying to make my own register and login system and this happenned
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
the errors at this code i don't see and thing wrong
strcat(gPlayerInfo[playerid][PLAYER_NAME], dini_Get(file,"Name"));

IstuntmanI
18/07/2012, 01:44 PM
These:
enum PLAYER_MAIN {
PLAYER_NAME[MAX_PLAYER_NAME],
PLAYER_IP[16],
PLAYER_REGGED,
PLAYER_PASS,
PLAYER_LOGGED,
PLAYER_LEVEL,
PLAYER_WIRED,
PLAYER_JAILED
}
new gPlayerInfo[MAX_PLAYERS][PLAYER_MAIN];
must be created global (in top of script) and this:
strcat(gPlayerInfo[playerid][PLAYER_NAME], dini_Get(file,"Name"));
in a callback, like OnPlayerConnect.