PDA

View Full Version : ORG Error


NoDi522
25/06/2015, 08:43 PM
Why do I get this errors when I compile:

C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3370) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3371) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3372) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3374) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3376) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3378) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3380) : error 017: undefined symbol "ORGID"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(3381) : error 017: undefined symbol "ORGID"


It starts from : INI_String("Ime",OrgInfo[ORGID][oName],128); // 3370 line and goes on

CODE:

public LoadOrg(name[],value[])
{
new poruka[128];
format(poruka,sizeof(poruka),oPATH);
if(!fexist(poruka)) return 0;

for(new ORGID = 0; ORGID < MAX_TEAMS; ORGID++)
{
if(OrgInfo[ORGID][oName] == 0)
{
break; // Ako je ime organizacije '0' stopiramo i rusimo.
}
}
INI_String("Ime",OrgInfo[ORGID][oName],128);
INI_Int("Leaded",OrgInfo[ORGID][oLeaded]);
if(OrgInfo[ORGID][oLeaded] == 0)
{
INI_Int("Leader",OrgInfo[ORGID][oLeader]);
}
else if(OrgInfo[ORGID][oLeaded] == 1)
{
INI_String("Leader",OrgInfo[ORGID][oLeader],MAX_PLAYER_NAME);
}
INI_Int("Sef",OrgInfo[ORGID][oSef]);
INI_Int("Tip",OrgInfo[ORGID][oTip]);
return 1;
}

MohammedZ
25/06/2015, 08:44 PM
You must Define ORGID

NoDi522
25/06/2015, 08:49 PM
Hey i made like this and I get no errors can you notice something wrong which could cause not working:

public LoadOrg(ORGID,name[],value[])
{
new poruka[128];
format(poruka,sizeof(poruka),oPATH);
if(!fexist(poruka)) return 0;

for(ORGID = 0; ORGID < MAX_TEAMS; ORGID++)
{
if(OrgInfo[ORGID][oName] == 0)
{
break; // Ako je ime organizacije '0' stopiramo i rusimo.
}
}
INI_String("Ime",OrgInfo[ORGID][oName],128);
INI_Int("Leaded",OrgInfo[ORGID][oLeaded]);
if(OrgInfo[ORGID][oLeaded] == 0)
{
INI_Int("Leader",OrgInfo[ORGID][oLeader]);
}
else if(OrgInfo[ORGID][oLeaded] == 1)
{
INI_String("Leader",OrgInfo[ORGID][oLeader],MAX_PLAYER_NAME);
}
INI_Int("Sef",OrgInfo[ORGID][oSef]);
INI_Int("Tip",OrgInfo[ORGID][oTip]);
return 1;
}