25.06.2015, 20:43
Why do I get this errors when I compile:
It starts from :
CODE:
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"
PHP код:
INI_String("Ime",OrgInfo[ORGID][oName],128); // 3370 line and goes on
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;
}