I don't see any shit wrong - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I don't see any shit wrong (
/showthread.php?tid=360628)
I don't see any shit wrong -
Gangster-rocks - 18.07.2012
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"));
Re: I don't see any shit wrong -
IstuntmanI - 18.07.2012
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.