SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help (/showthread.php?tid=234250)



help - omer5198 - 03.03.2011

when i open samp-server.exe it open the black window as usual... but now it says right before Number of vehicles...
Код:
Script [gamemodes/mygamemode.amx]: Run time error 20: "Invaild index parameter (bad entery point)
when i enter my server he works fine... but still... i want to fix this problem. it all started after i added a fakedeath command to my gamemode, a chat something ([NAME](id:ID): TEXT [player/admin]... but that worked before... another thing that i added was when you kill someone it give you his money + 500 and send a death message... plz help!!!


Re: help - Stigg - 03.03.2011

You need:

main()
{

}

In your gm.


Re: help - omer5198 - 03.03.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
You need:

main()
{

}

In your gm.
where do i put this?


Re: help - xRyder - 03.03.2011

Where every you want, but it must be outside any callback.

So do it like:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

main()
{

}

public OnPlayerSpawn(playerid)
{
    return 1;
}



Re: help - omer5198 - 03.03.2011

Quote:
Originally Posted by xRyder
Посмотреть сообщение
Where every you want, but it must be outside any callback.

So do it like:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

main()
{

}

public OnPlayerSpawn(playerid)
{
    return 1;
}
thx, i'll try it!
__________________
Edit:
------Thx! it worked!!!