16.06.2010, 20:50
What is wrong here?
When I type a number, there is no effect. The box goes away.
When I type a number, there is no effect. The box goes away.
pawn Код:
if(!strcmp(cmdtext, "/teles", true))
{
EUM_ShowForPlayer(playerid, 2, "Teleports", "Choose an option~n~1. Stunts~n~2. Jumps~n~3. Parkour~n~4. Race~n~5. Other~n~6. Back", 6);
return 1;
}
pawn Код:
public OnPlayerResponse(playerid, option)
{
if(EUM_Indentify(playerid, 2)) // New function EUM_Indentify - used to indentify the menu
{
switch(option) // lets switch between options
{
case 1: // option 1 - Stunts
{
EUM_ShowForPlayer(playerid, 3, "Teleports", "Choose an option~n~1. DAM~n~2. LV Stunts~n~3. LS Stunts~n~4. SF Stunts~n~5. Chilliad Stunts~n~6. Back", 6);
}
case 2: // option 2 - Jumps
{
EUM_ShowForPlayer(playerid, 4, "Teleports", "Choose an option~n~1. LS Jump~n~2. SF Jump~n~3. LV Jump~n~4. AA Jump~n~5. Pier Jump~n~6. Dam Jump~n~7. Huge Jump~n~8. Water Jump~n~9. Back", 6);
}
case 3: // option 3 - Parkour
{
EUM_ShowForPlayer(playerid, 5, "Teleports", "Choose an option~n~1. Parkour 1 (Very Easy)~n~2. Parkour 2 (Easy)~n~3. Parkour 3 (Medium)~n~4. Parkour 4 (Hard)~n~5. Parkour 5 (Very Hard)~n~6. Back", 6);
}
case 4: // option 4 - Race
{
EUM_ShowForPlayer(playerid, 6, "Teleports", "Choose an option~n~1. SF Race~n~2. LV Race~n~3. Monster Race~n~4. Off Road Race~n~5. Drag Race~n~6. Back", 6);
}
case 5: // option 5 - Other
{
EUM_ShowForPlayer(playerid, 7, "Teleports", "Choose an option~n~1. Liberty City~n~2. San Fierro Airport~n~3. Area 51~n~4. Abandon Airport~n~5. Los Santos Airport~n~6. Back", 6);
}
case 6: // option 6 - Back
{
EUM_ShowForPlayer(playerid, 8, "Teleports", "Choose an option~n~1. DAM~n~2. LV Stunts~n~3. LS Stunts~n~4. SF Stunts~n~5. Chilliad Stunts~n~6. Back", 6);
}
}
}
EUM_DestroyForPlayer(playerid); // After choosing an option, we hide 'message box'
return 1;
}