02.02.2014, 04:35
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 ) {
// ...
}
}
}
Se isso ocorrer basta usar strcat.
https://sampwiki.blast.hk/wiki/Strcat