2 Questions - 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: 2 Questions (
/showthread.php?tid=231516)
2 Questions -
Rokzlive - 25.02.2011
1. How do i check if a player has any weapons?
2. How do i fix this error?
Код:
[16:01:07] Script[gamemodes/bus.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Re: 2 Questions -
Stigg - 25.02.2011
https://sampwiki.blast.hk/wiki/GetPlayerWeapon
Find a players weapon.
Re: 2 Questions -
Vince - 25.02.2011
Runtime Error 20: You forgot the
main() {} function in your gamemode.
Re: 2 Questions -
Rokzlive - 25.02.2011
Quote:
Originally Posted by Vince
Runtime Error 20: You forgot the main() {} function in your gamemode.
|
So i add main(); at the top of my script or? :S
Re: 2 Questions -
Stigg - 25.02.2011
main()
{
}
Is what you need.