SA-MP Forums Archive
Help again :p - 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 again :p (/showthread.php?tid=181443)



Help again :p - KiraAndPoul - 05.10.2010

Now i did as i was told in a earlyere post,

new TH1;
TH1 = CreatePickup(1212, 2, 1629.7062, -2329.1780, 13.5469, 0);

but the problem is not that i get this error.
error 010: invalid function or declaration

it's supposed to be a pickup wich means that when you enter ^that point you get some messages and there will be maked TH2 next pickup only for the player who found The TH1, but why this error -_-'


Re: Help again :p - Mauzen - 05.10.2010

Hit me if I am wrong, but did you put that code under OnGameModeInit()? (Maybe it is out of the { })
This would produce an error like this.


Re: Help again :p - ToPhrESH - 06.10.2010

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
Hit me if I am wrong, but did you put that code under OnGameModeInit()? (Maybe it is out of the { })
This would produce an error like this.
Yes your correct. He has to have this in the
pawn Код:
OnGameModeInit()
or else it will fail. I've made mistakes like this before and it is because you need it in the OnGameModeInit.