Undefined symbols - 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: Undefined symbols (
/showthread.php?tid=414844)
Undefined symbols -
dusk - 10.02.2013
I got these 2 errors:
pawn Код:
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam2.pwn(69) : error 017: undefined symbol "name"
C:\Users\Justas\Desktop\TestServer\gamemodes\freeroam2.pwn(69) : error 017: undefined symbol "value"
And This is line 69:
pawn Код:
INI_Int("Registered:",PlayerInfo[playerid][PLAYER_REGGED]);
Please help
Re: Undefined symbols -
dusk - 11.02.2013
bump,anyone?
Re: Undefined symbols -
batonsa - 11.02.2013
obviously you haven't or have done some mistakes while defining them, check the lines surrounding that area aswell.
Re: Undefined symbols -
Bikken - 11.02.2013
You defined name and value?
Re: Undefined symbols -
dusk - 11.02.2013
these are my only defines associated with that problem:
pawn Код:
enum pInfo{
playername[MAX_PLAYER_NAME],
PLAYER_REGGED,
PLAYER_LOGGED,
PLAYER_PASS,
PLAYER_ADMIN
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: Undefined symbols -
dusk - 11.02.2013
i got this OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(!fexist(user_ini_file(playerid)))
{
new INI:ini=INI_Open(user_ini_file(playerid));
INI_WriteString(ini,"Name",name);
INI_WriteString(ini,"Registered:","-1");
INI_WriteString(ini,"Password:","");
INI_WriteString(ini,"Admin:","-1");
INI_WriteString(ini,"Logged in:","-1");
INI_Close(ini);
}
}
And this on the command that gives me the error:
pawn Код:
new pass[128];
INI_Load(user_ini_file(playerid));
INI_Int("Registered:",PlayerInfo[playerid][PLAYER_REGGED]);
if(PlayerInfo[playerid][PLAYER_REGGED]==1) return SendClientMessage(playerid,0x00FF00FF,"You are already registered");
if(sscanf(params,"s",pass))SendClientMessage(playerid,0x00FF00FF,"/register pass");
else
{
new INI:ini=INI_Open(user_ini_file(playerid));
INI_WriteString(ini,"Password:",pass);
INI_RemoveEntry(ini,"Registered:");
INI_WriteInt(ini,"Registered:",1);
INI_Close(ini);
PlayerInfo[playerid][PLAYER_REGGED]=1;
PlayerInfo[playerid][PLAYER_LOGGED]=1;
format(PlayerInfo[playerid][PLAYER_PASS],50,"%s",pass);
}
return 1;
Re: Undefined symbols -
dusk - 11.02.2013
yes, a bit of your tutorial and a bit of some other....then they mix up in my head and i get that^
could you tell me the easiest way to fix MY script?