Help! It says "Undefinded Symbol" but I do have the stock! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help! It says "Undefinded Symbol" but I do have the stock! (
/showthread.php?tid=157096)
Help! It says "Undefinded Symbol" but I do have the stock! -
nuriel8833 - 05.07.2010
PHP код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\Tafs Mode.pwn(444) : error 017: undefined symbol "AddAllClasses"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\Tafs Mode.pwn(467) : error 017: undefined symbol "GetPlayerCountry"
Those are the errors! But I do have those stocks at the end of my mode!
What is the problem?
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
Calgon - 05.07.2010
Care to show us?
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
nuriel8833 - 05.07.2010
The stocks? no problem!
PHP код:
stock AddAllClasses(Float:cX,Float:cY,Float:cZ,Float:cA,w1,a1,w2,a2,w3,a3) {
for(new i; i<300;i++) if(IsVaildSkin(i)) AddPlayerClass(i,cX,cY,cZ,cA,w1,a1,w2,a2,w3,a3);
return 1;
}
PHP код:
GetPlayerCountry(playerid,Country[256]){
new IPAddress[256];
new a,b,c,d,ipf;
new File:IPFile;
new Text[256],start,end;
GetPlayerIp(playerid,IPAddress,sizeof(IPAddress));
GetParams(IPAddress);
a=strval(Params[0]);
b=strval(Params[1]);
c=strval(Params[2]);
d=strval(Params[3]);
if(a==127 && b==0 && c==0 && d==1){
format(Country,sizeof(Country),"Localhost");
return 1;
}
ipf = (16777216*a) + (65536*b) + (256*c) + d;
if(!fexist("CountriesIPs/IPLIST.csv")) return SendClientMessage(playerid,0xFF0000FF,"Country file not found.");
IPFile=fopen("CountriesIPs/IPLIST.csv",io_read);
fread(IPFile,Text,sizeof(Text),false);
while(strlen(Text)>0){
GetFileData(Text);
start=strval(FileData[0]);
end=strval(FileData[1]);
if(ipf>=start && ipf<=end){
format(Country,sizeof(Country),"%s(%s)",FileData[6],FileData[5]);
fclose(IPFile);
return 1;
}
fread(IPFile,Text,sizeof(Text),false);
}
fclose(IPFile);
return 1;
}
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
Calgon - 05.07.2010
Are they in your gamemode, or have you included them separately?
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
nuriel8833 - 05.07.2010
No they are in the end of my mode,lined 1770-1802 and 1811-1814 out of 1919 lines in my Mode
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
[LDT]LuxurY - 05.07.2010
try to put it before lines where you use it, or add them to include.
Re: Help! It says "Undefinded Symbol" but I do have the stock! -
nuriel8833 - 05.07.2010
Yap,it is working,thanks a lot!