10.01.2015, 13:57
I left the script working and got back to it now a year later and none of the dialogs are working?
I'm using the easydialog include.
Includes in the script:
OnPlayerSpawn:
Bottom of Script:
I'm using the easydialog include.
Includes in the script:
pawn Код:
#include <a_samp>
#include <a_mysql>
#include <formatnumber>
#include <easydialog>
#include <sscanf2>
#include <streamer>
#include <zcmd>
pawn Код:
Dialog_Show(playerid, Show:SKILL, DIALOG_STYLE_LIST, "Select Skill", "Con Artist\nRapist\nHitman\nPrivate Medic\nArms Dealer\nKidnapper", "Cancel","Cancel");
pawn Код:
Dialog:SKILL(playerid, response, listitem, inputtext[])
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, -1,"Con artist");
}
case 1:
{
SendClientMessage(playerid, -1,"Rapist");
}
case 2:
{
SendClientMessage(playerid, -1,"Hitman");
}
case 3:
{
SendClientMessage(playerid, -1,"Private Medic");
}
case 4:
{
SendClientMessage(playerid, -1,"Arms Dealer");
}
case 5:
{
SendClientMessage(playerid, -1,"Kidnapper");
}
}
}
return 1;
}