I don't see any shit wrong
#1

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 © 1997-2006, ITB CompuPhase


4 Errors.
i am trying to make my own register and login system and this happenned
pawn Код:
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
pawn Код:
strcat(gPlayerInfo[playerid][PLAYER_NAME],          dini_Get(file,"Name"));
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)