19.09.2009, 20:40
this is dumb. The menu pops up with the code and all, but how come when I hit a menu button it does absolutely nothing?
someone please tell me what is wrong with it, No compiling errors or warnings...
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
currentmenu[playerid] = GetPlayerMenu();
{
if(currentmenu[playerid] == PizzaJobs)
{
switch(row)
{
case 0:
{
SendClientMessage(playerid, 0xFFFF00AA, "You are now a Delivery Boy");
GameTextForPlayer(playerid, "type /job for instructions", 3000, 3);
pJob[playerid] = 1;
return 1;
}
case 1:
{
SendClientMessage(playerid, 0xFFFF00AA, "You are now a Truck Driver");
GameTextForPlayer(playerid, "type /job for instructions", 3000, 3);
pJob[playerid] = 2;
return 1;
}
}
}
}
return 1;
}

