My menu won't compile
#1

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?
Reply
#2

pastebin.com

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

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]
Reply
#4

Код:
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
Reply
#5

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

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
Reply
#7

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..
Reply
#8

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.
Reply
#9

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

thankyou so much! lolz.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)