SA-MP Forums Archive
Liiiil Help +rep - 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: Liiiil Help +rep (/showthread.php?tid=353062)



Liiiil Help +rep - FearLe$$ - 22.06.2012

Error:
gamemodes\SAC.pwn(494) : error 022: must be lvalue (non-constant)

LINE:
gunshop2 = CreatePickup(1254, 23, 653.4415,-542.7672,16.3281,85.3129);

just a lil error so any one?


Respuesta: Liiiil Help +rep - Chris1337 - 22.06.2012

the last coordinate must be interior
wiki.sa-mp.com/wiki/CreatePickup


Re: Liiiil Help +rep - FearLe$$ - 22.06.2012

edit:
still giving errors Virtual Worlds Setted to 0


Re: Liiiil Help +rep - FearLe$$ - 22.06.2012

nvm fixed it by my self instead of = i used ==


Re: Liiiil Help +rep - Dubya - 22.06.2012

G'z.


Re: Liiiil Help +rep - ReneG - 22.06.2012

Sure.

The createpickup syntax is like this.

Код:
CreatePickup(modelid, pickuptype, x-coordinate, y-coordinate, z-coordinate, worldid);
Yours is.
pawn Код:
CreatePickup(1254, 23,   653.4415, -542.7672, 16.3281, 85.3129,  0);
               ^   ^        ^           ^       ^         ^     ^
            model  type   x-pos      y-pos     z-pos    WTF??   worldid
See the problem? Hope I helped.


Re: Liiiil Help +rep - FearLe$$ - 22.06.2012

fixed it by my self anyways + REP