Help #define ! - 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 #define ! (
/showthread.php?tid=246288)
Help #define ! -
Alex.Cone - 03.04.2011
I have made pickups but i want make somthing like that :
Код:
fbi = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);
But it saz' :
Код:
C:\DOCUME~1\Emrah\Desktop\BONECO~1\GAMEMO~1\RPB.pwn(53) : error 017: undefined symbol "fbi"
C:\DOCUME~1\Emrah\Desktop\BONECO~1\GAMEMO~1\RPB.pwn(56) : error 017: undefined symbol "fbi"
But I have :
What is the problem ? :/
Re: Help #define ! -
Mean - 03.04.2011
1. You have used the FBI variable twice.
2. Probbably you put it on the bottom of script or whutever, put it before creating pickups.
And for more pickups, make an array.
pawn Код:
new fbi[ 4 ];
fbi[ 0 ] = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);
fbi[ 1 ] = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);
fbi[ 2 ] = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);
fbi[ 3 ] = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);
fbi[ 4 ] = CreatePickup(1247, 2, -1390.0950927734, 2637.994140625, 55.984375, -1);