[Ajuda] Como adicionar mais teleportes?
#2

pawn Code:
//No comando ou coordenada:
ShowPlayerDialog(playerid, TeleportesZumbi, DIALOG_STYLE_LIST, "Teleportes", "Teleporte 1\nTeleporte 2\nTeleporte 3\nTeleporte 4\nTeleporte 5\nTeleporte 6\nTeleporte 7\nTeleporte 8\nTeleporte 9", "Ir", "");


// Em OnDialogResponse

if(dialogid == TeleportesZumbi)
{
    if(response)
    {
        if(listitem == 0)
        {
            SetPlayerPos(playerid,Float:x,Float:y,Float:z);
            SendClientMessage(playerid, COLOR_RED, "[ > ] Vocк teletransportou para a Grove Street!");
            return 1;
        }
        else if(listitem == 1)
        {
            SetPlayerPos(playerid,Float:x,Float:y,Float:z);
            SendClientMessage(playerid, COLOR_RED, "[ > ] Vocк se teletransportou para a Estaзгo Unity!");
            return 1;
        }
        else if ( listitem == 2 ) {
       
            // ...
       
        }
        else if ( listitem == 3 ) {

            // ...
        }
        else if ( listitem == 4) {

            // ...
        }
        else if ( listitem == 5 ) {

            // ...
        }
        else if ( listitem == 6 ) {

            // ...
        }
        else if ( listitem == 7  ) {

            // ...
        }
        else if ( listitem == 8 ) {

            // ...
        }
    }
}
Ъnico possнvel erro que pode dar й: input line too long (after substitutions) = Linha muito grande/extensa.

Se isso ocorrer basta usar strcat.

https://sampwiki.blast.hk/wiki/Strcat
Reply


Messages In This Thread
Como adicionar mais teleportes? - by eNtinityGaming - 02.02.2014, 04:23
Re: Como adicionar mais teleportes? - by Gii - 02.02.2014, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)