#include <a_samp>
#include <zcmd>
#define DIALOGID 1234
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST,\"Teleportok\",\"Los Santos\\nSan Fierro\\nLas Venturas\",\"Ok\",\"Mégse\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid, x,y,z);
}
if(listitem == 1)
{
SetPlayerPos(playerid, x,y,z);
}
if(listitem == 2)
{
SetPlayerPos(playerid, x,y,z);
}
}
return 1;
}
return 0;
}
E: Javítva. Köszi az észrevételt Flash! ;)
Egy \\n-t odaírtál és így nem lesz jó!
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST,\"Teleportok\",\"Los Santos\\n\\nSan Fierro\\nLas Venturas\",\"Ok\",\"Mégse\");
Helyett ezt:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST,\"Teleportok\",\"Los Santos\\nSan Fierro\\nLas Venturas\",\"Ok\",\"Mégse\");
De am jól írtad :D