Define 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: Define error? (
/showthread.php?tid=630767)
Define error? -
DuyDang2412 - 18.03.2017
I have just defined this:
PHP код:
#define Loop:(%0, %1) \
for(new i = %0; i < %1; i++)
// /// // // / // / / / /
public OnPlayerSpawn(playerid)
{
Loop:(0, 10){
print("Print this text");
}
}
And these are my errors:
Please help.
Re: Define error? -
Toroi - 18.03.2017
PHP код:
#define Loop:(%0,%1) // No space between the comma and the percent sign.
Re: Define error? -
DuyDang2412 - 18.03.2017
Quote:
Originally Posted by Troydere
PHP код:
#define Loop:(%0,%1) // No space between the comma and the percent sign.
|
Worked! Thank you very much.