18.02.2017, 01:22
Try and can you tell me what's BIZMENU for?
PHP код:
public OnTextMenuResponse(playerid,menuid,listitem)
{
for(new i = 0; i < MAX_BUSINESSES; i++)
{
if(menuid == i)
{
switch(listitem)
{
case 1:
{
new file[40];
BizID[playerid] = i;
format(file, sizeof(file), BIZ_FILE, i);
static SpawnPlace[350],bool:form = true;
if(form)
{
format(SpawnPlace, sizeof(SpawnPlace), " ~y~1. ~w~Currently Name: %s~n~",BizInfo[i][bName]);
form = false;
}
TextMenuShowForPlayer(playerid,BIZMENU2,"~g~Change Spawn Place",SpawnPlace,1);
}
}
}
}