ORG Error - 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: ORG Error (
/showthread.php?tid=579257)
ORG Error -
NoDi522 - 25.06.2015
Why do I get this errors when I compile:
PHP код:
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 :
PHP код:
INI_String("Ime",OrgInfo[ORGID][oName],128); // 3370 line and goes on
CODE:
PHP код:
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;
}
Re: ORG Error -
MohammedZ - 25.06.2015
You must Define ORGID
Re: ORG Error -
NoDi522 - 25.06.2015
Hey i made like this and I get no errors can you notice something wrong which could cause not working:
PHP код:
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;
}