Need help quickly
#1

UPDATED
PHP код:
public OnTextMenuResponse(playerid,menuid,listitem)
{
    for(new 
0MAX_BUSINESSESi++)
    {
    if(
menuid == BIZMENU)
    {
        switch(
listitem)
        {
            case 
1:
            {
                new 
file[40];
                
BizID[playerid] = i;
                
format(filesizeof(file), BIZ_FILEi);
                static 
SpawnPlace[350],bool:form true;
                if(
form)
                {
                    
format(SpawnPlacesizeof(SpawnPlace), " ~y~1. ~w~Currently Name: %s~n~",BizInfo[i][bName]);
                       
form false;
                }
                
TextMenuShowForPlayer(playerid,BIZMENU2,"~g~Change Spawn Place",SpawnPlace,1);
            }
        }
    }
    } 
I am trying to get business names on textdraw but it's only reading ID 0 business and i tried to login with second account and it shows same business name which is from id 0.

Did i make a mistake something?
Reply
#2

Bump UPDATED
Reply
#3

Try and can you tell me what's BIZMENU for?
PHP код:
public OnTextMenuResponse(playerid,menuid,listitem

    for(new 
0MAX_BUSINESSESi++) 
    { 
    if(
menuid == i
    { 
        switch(
listitem
        { 
            case 
1
            { 
                new 
file[40]; 
                
BizID[playerid] = i
                
format(filesizeof(file), BIZ_FILEi); 
                static 
SpawnPlace[350],bool:form true
                if(
form
                { 
                    
format(SpawnPlacesizeof(SpawnPlace), " ~y~1. ~w~Currently Name: %s~n~",BizInfo[i][bName]); 
                       
form false
                } 
                
TextMenuShowForPlayer(playerid,BIZMENU2,"~g~Change Spawn Place",SpawnPlace,1); 
            } 
        } 
    } 
    } 
Reply
#4

Thanks Friend but changed my mind. I was trying to do something but got tired so will start tomorrow in a new way.

BIZMENU was the textdraw MENU
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)