Whats bad on this script?
#1

I'm working on a script catching the scripts from the wiki, and editing them and trying to understand. When i start the server with my gm it says, runtime eror 22 no index or something like that, whats bad?

ERORR: Script[gamemodes/learn.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

Quote:

/*--------------------------------- Includes ---------------------------------*/
#include <a_samp>
/*--------------------------------- End Includes -----------------------------*/




/*--------------------------------- TextDraws Id's ---------------------------*/

new Text:hello;

/*--------------------------------- End TextDraws Id's -----------------------*/

public OnGameModeInit()
{

hello = TextDrawCreate(240.0,580.0," Hello Player!");
TextDrawColor(hello,0x000000FF);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,hello);
return 1;
}

Reply


Messages In This Thread
Whats bad on this script? - by universe - 05.12.2010, 19:32
Re: Whats bad on this script? - by universe - 05.12.2010, 19:59
Re: Whats bad on this script? - by fangoth1 - 05.12.2010, 20:02
Re: Whats bad on this script? - by Think - 05.12.2010, 20:03
Re: Whats bad on this script? - by universe - 05.12.2010, 20:19
Re: Whats bad on this script? - by scripter1 - 05.12.2010, 20:24
Re: Whats bad on this script? - by Think - 05.12.2010, 20:24
Re: Whats bad on this script? - by universe - 05.12.2010, 20:31

Forum Jump:


Users browsing this thread: 4 Guest(s)