Undefined symbol 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: Undefined symbol error (
/showthread.php?tid=536699)
Undefined symbol error -
cs_waller - 11.09.2014
FIXED
Re: Undefined symbol error -
dusk - 11.09.2014
So where do you create this function called "SavePlayerStats" ?
Re: Undefined symbol error -
cs_waller - 11.09.2014
I don't know where to create it, can you help me please?
Re: Undefined symbol error -
Stinged - 11.09.2014
Did you copy that from some gamemode?
Re: Undefined symbol error -
cs_waller - 11.09.2014
Yes.
Re: Undefined symbol error -
AroseKhanNiazi - 11.09.2014
you also need to copy that stock or callback too
Re: Undefined symbol error -
cs_waller - 11.09.2014
There wasn't any stock nor callback. I copied it from some thread and the post gave everything which i posted here. The thread poster who had a problem with account stats saving (the problem i have too) answered that it helped.
Re: Undefined symbol error -
Dangjai - 11.09.2014
pawn Код:
public SaveAll()
new SavePlayerStats
{
for(new i=0; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i) && !IsPlayerNPC(i)) SavePlayerStats(i);
return 1;
}
Re: Undefined symbol error -
cs_waller - 11.09.2014
The error with undefined symbol has gone but now it gives three new errors
pawn Код:
error 003: declaration of a local variable must appear in a compound block
error 010: invalid function or declaration
error 010: invalid function or declaration