[Tutorial] How to Make Dialogs!
#2

In the last piece of code, it's better to use switch-case instead of multiple if's.

PHP код:
switch (listitem)
{
    case 
0:
    {
        
SetPlayerPos(playerid,404.0729,2464.5574,16.5000);
        
SendClientMessage(playerid0xFFFF00AA"You Have Teleported To Abondoned Airport" ); 
    }
    case 
1:
    {
        
SetPlayerPos(playerid,-1353.3026,-235.7281,14.1440);
        
SendClientMessage(playerid0xFFFF00AA"You Have Teleported To San Ferrieno Airport" ); 
    }
    case 
2:
    {
        
SetPlayerPos(playerid,1422.1212,-2541.3335,13.5469);
        
SendClientMessage(playerid0xFFFF00AA"You Have Teleported To Los Santos Airport" ); 
    }
    case 
3:
    {
        
SetPlayerPos(playerid,1319.9559,1269.4812,10.8203);
        
SendClientMessage(playerid0xFFFF00AA"You Have Teleported To Las Venturas Airport" ); 
    }

Reply


Messages In This Thread
How to Make Dialogs! - by Compiler - 16.02.2016, 16:43
Re: How to Make Dialogs! - by AmigaBlizzard - 16.02.2016, 17:43
Re: How to Make Dialogs! - by SyS - 17.02.2016, 01:35
Re: How to Make Dialogs! - by BiosMarcel - 17.02.2016, 07:48
Re: How to Make Dialogs! - by FreAkeD - 17.02.2016, 08:21
Re: How to Make Dialogs! - by Compiler - 17.02.2016, 14:10
Re: How to Make Dialogs! - by Pottus - 18.02.2016, 17:32
Re: How to Make Dialogs! - by Vince - 18.02.2016, 19:39
Re: How to Make Dialogs! - by Pottus - 18.02.2016, 20:00
Re: How to Make Dialogs! - by Vince - 18.02.2016, 20:59

Forum Jump:


Users browsing this thread: 2 Guest(s)