CreatePickup < Scripting Help - 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: CreatePickup < Scripting Help (
/showthread.php?tid=413795)
CreatePickup < Scripting Help -
Beckett - 06.02.2013
------------------
Re: CreatePickup < Scripting Help -
TheCancler - 06.02.2013
Код:
CreatePickup(1318, 1, 282,1480.7358,-1736.2330,13.3828,37.5772, -1);
Try this maybe, all I did was set the virtual world for it set in all virtual worlds.
Re: CreatePickup < Scripting Help -
TheCancler - 06.02.2013
I just realized you have to many arguments, it should be something like this.
Код:
(model, type, Float:X, Float:Y, Float:Z, Virtualworld)
So try removing this:
And:
End result:
Код:
Bank = CreatePickup(1318, 1, 1480.7358, -1736.2330, 13.3828, -1);
Re: CreatePickup < Scripting Help -
Beckett - 07.02.2013
------
Re: CreatePickup < Scripting Help -
RajatPawar - 07.02.2013
pawn Код:
Bank = CreatePickup(1318, 1 ,1480.7358, -1736.2330, 13.3828, GetPlayerVirtualWorld(playerid));
How about this?
Re: CreatePickup < Scripting Help -
Beckett - 07.02.2013
------
Re: CreatePickup < Scripting Help - Joao Pedro - 07.02.2013
Did you do a debug to see if the code is running?
Re: CreatePickup < Scripting Help -
Glad2BeHere - 07.02.2013
is it under Gamemodeinit

or is it called in a function or something
Re: CreatePickup < Scripting Help -
Beckett - 07.02.2013
------
Re: CreatePickup < Scripting Help - Joao Pedro - 07.02.2013
Quote:
Originally Posted by DaniceMcHarley
Well i don't know how to do that :P
It's under public OnPlayerConnect(playerid).
|
Change to under OnGamemodeInit