Define new - 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: Define new (
/showthread.php?tid=271625)
Define new -
kingchandio - 25.07.2011
I want to define SetPlayerScore into SetPlayerLevel how to do that?
pawn Код:
error 017: undefined symbol "SetPlayerLevel"
Re: Define new -
a32112365445 - 25.07.2011
Try this:
PHP код:
forward SetPlayerLevel(playerid, level)
public SetPlayerLevel(playerid, level)
{
SetPlayerScore(playerid, level);
return 1;
}
Re: Define new -
[HiC]TheKiller - 25.07.2011
pawn Код:
#define SetPlayerLevel(%1,%2) SetPlayerScore(%1, %2)
Hope that helps
.
Re: Define new - Guest3598475934857938411 - 25.07.2011
Код:
public SetPlayerLevel(playerid, level)
{
SetPlayerScore(playerid, level);
}
EDIT: NVM people are faster :S
Re: Define new -
Raimis_R - 25.07.2011
pawn Код:
#define SetPlayerLevel\
SetPlayerScore
Lol to slow
Re: Define new -
kingchandio - 25.07.2011
Thanks