Really dumb 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: Really dumb error. (
/showthread.php?tid=351243)
Undefined symbol "CallRemoteFunction" -
Gytis0 - 15.06.2012
So I got the GarHouse system and I got my server-sided cash. Problem is, I can't link those two, because of this one really really stupid error:
pawn Code:
(59) : error 017: undefined symbol "CallRemoteFunction"
(59) : warning 215: expression has no effect
(59) : warning 215: expression has no effect
(59) : warning 215: expression has no effect
(59) : warning 215: expression has no effect
(59) : error 001: expected token: ";", but found ")"
(59) : error 029: invalid expression, assumed zero
(59) : fatal error 107: too many error messages on one line
Undefined symbol "CallRemoteFunction"? I know right?
And here is what I'm trying to do:
pawn Code:
SafeGivePlayerMoney(playerid, money)
{
return CallRemoteFunction("GivePlayerCash","i",playerid, money);
}
#define GivePlayerCash SafeGivePlayerMoney
Line 59 is:
pawn Code:
return CallRemoteFunction("GivePlayerCash","i",playerid, money);
Can somebody help me? I've been browsing the internet for half an hour because of this problem now and I'm really angry, because this error is stopping my progress with the server.
Re: Really dumb error. -
Gytis0 - 15.06.2012
Anyone? Please?
Re: Really dumb error. -
WillyP - 15.06.2012
Why are you bumping after 2 hours?
Re: Really dumb error. -
Gytis0 - 15.06.2012
Quote:
Originally Posted by [FU]Victious
Why are you bumping after 2 hours?
|
This is the first bump in my entire life. I'm really sorry, I don't know when can I bump, but I really need this error fixed.
Re: Really dumb error. -
[KHK]Khalid - 15.06.2012
dunno try this it might work.
pawn Code:
return CallRemoteFunction("GivePlayerCash","ii",playerid, money);
Re: Really dumb error. -
Gytis0 - 15.06.2012
Quote:
Originally Posted by HellSphinX
dunno try this it might work.
pawn Code:
return CallRemoteFunction("GivePlayerCash","ii",playerid, money);
|
Didn't work either
Re: Really dumb error. -
Gytis0 - 16.06.2012
Is there anyone who can help me? :/
Re: Really dumb error. -
justinnater - 16.06.2012
new
Code:
CallRemoteFunction[MAX_PLAYERS];
near the top of the script.
No idea if this might work.
Re: Really dumb error. -
Gytis0 - 16.06.2012
Quote:
Originally Posted by justinnater
new
Code:
CallRemoteFunction[MAX_PLAYERS];
near the top of the script.
No idea if this might work.
|
Sorry for wasting your time, but what I did was a really stupid mistake. I put the CallRemoteFunction before the includes. Now I fixed it by putting the function AFTER the includes. Thanks anyways