SA-MP Forums Archive
My menu won't compile - 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: My menu won't compile (/showthread.php?tid=70666)



My menu won't compile - Drift_04 - 26.03.2009

ok so i used this tutorial https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu

and i did everything it said and theres nothing wrong, i didn't even modify what it said to see if it would work, and whenevr i compile it, a thing comes up that says pawno library has closed, and the pawno says theres no errors, but when the pawno library closes its an error and the server won't start up, so why won't any of my menus work?


Re: My menu won't compile - kaisersouse - 26.03.2009

pastebin.com

^ post your code there, then post the link to it here so we can see whats up


Re: My menu won't compile - Drift_04 - 26.03.2009

ok i pasted it here http://pastebin.com/f5bf5f71b


and this is what it looks like when i compile it..

[img width=1024 height=640]http://www.zezombia.com/upload/drift_04/ex.jpg[/img]


Re: My menu won't compile - kaisersouse - 26.03.2009

Код:
public OnPlayerCommandText(playerid, cmdtext[]) 
{
  if(strcmp(cmdtext, "/teleport", true) == 0)
  {
    ShowMenuForPlayer(teleportmenu,playerid);
    return 1;
  }
  return 0;
}
^^ try that instead of what you have for OnPlayerCommandText now


Re: My menu won't compile - kaisersouse - 26.03.2009

Also, OnPlayerSelectedMenuRow doesnt have a { after it, nor is there any kind of return at the end.


Re: My menu won't compile - Drift_04 - 26.03.2009

thanks ill try it out, and on my pawno script there is a return at the end of onplayerselectedmenurow i just messed up in pastebin


Re: My menu won't compile - Drift_04 - 26.03.2009

ok so heres my whooollee script, i dont wan people taking it so it will only be onm pastebin for a day

http://pastebin.com/d3144df53 <-- is the pastebin script can u edit it to fix it please? that is my whole script for purchasing items on my server so yeah please nobody steal it..


Re: My menu won't compile - [M2S]moe - 26.03.2009

new Menu:CurrentMenu = GetPlayerMenu(playerid);

You are running this before OnGameModeInIt....

Take it out of there, and put it under:

public OnPlayerSelectedMenuRow(playerid, row)
{

that should fix it.


Re: My menu won't compile - Drift_04 - 26.03.2009

wholy crap! it worked lol, thanks so much! i am so happy to have a menu. i can't thankyou enough lol



How do i program this pickup/command? - Drift_04 - 26.03.2009

thankyou so much! lolz.