Trying to create a faction for a command.
#8

Quote:
Originally Posted by Thanks
Посмотреть сообщение
EDIT: Im trying to make like this

But when i press 1 giving me nothing.

PHP код:
if(InMenu[playerid] == 1)
        {
            if(
faction1[playerid]==1)
            {
               if(
strval(text)==1)
               {
                  
SendClientMessage(playerid, -1"{00FFFF}Coming Soon");
                  
InMenu[playerid]=1;
                  return 
0;
               } 
So, you're making that work if InMenu[playerid] == 1)
but in the code itself you're setting it to 1? what's the point of that?
Shouldn't the if(InMenu[playerid] == 1) be if(InMenu[playerid] == 0)?

About the return 0, just use return 1;

Also in the code above, please re-read what i've posted before, you are forgetting some {} this time
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)