Jump to content
  • 0

pomoc error 017: "ShowPlayerDialog"


n3cro

Dotaz

Zdravím , 

často mám problem s ShowPlayerDialog a nevím jak to opravit 
pomůže mi někdo :) ? 



 

D:\NOVEEEE\PRACESYSTEM\JOB.pwn(72) : error 017: undefined symbol "ShowPlayerDialog"

1 Error 



------------------------------------------------------------------------------------

CMD:jobs(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_PCLASS, DIALOG_STYLE_LIST, "Jobs Selection", "Sailor\nPolice Officer\nWorker\nJudge", "Ok", "Close");
	return 1;
}

 

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

Ano mám . 

Přikládám FS :

/*
	SA-MP Job(s) System
	Copyright © 2009-2015 Hardicore Allright Reserved ®
	
	Hardicore (Jobs System / Credits: Hardicore)
	Tested By: (ReginaFC, Valve)
	Usage: /jobs
*/

#include <a_samp>
#include <zcmd>

//*****************************
// Dialogs ********************
//*****************************
#define DIALOG_PCLASS 100

public OnFilterScriptInit()
{
    AddStaticVehicle(453, 415, -1927, -0, 4, 4, 50);
    AddStaticVehicle(490, 1535, -1668, 13, 0, 0, 50);
    AddStaticVehicle(498, 927, -1048, 13, 0, 0, 50);
    AddStaticVehicle(400, 1482, -1737, 13, 0, 1, 50);
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_PCLASS)
    {
        if(response)
        {
            switch(listitem)
            {
            		case 0:
            		{
            			SetPlayerPos(playerid, 414, -1929, 0);
            			GivePlayerWeapon(playerid, 7, 1);
            			SetPlayerSkin(playerid, 35);
            			SendClientMessage(playerid, 0xffff, "Teď jsi  A/An Námořník- Sailor");
            		}
            	    case 1:
            		{
            			SetPlayerPos(playerid, 1546, -1675, 13);
            			GivePlayerWeapon(playerid, 24, 600);
            			SetPlayerSkin(playerid, 266);
            			SendClientMessage(playerid, 0xfffff, "Pracuješ jako  A/An Policista- Police Officer");
            		}
            	    case 2:
            		{
            			SetPlayerPos(playerid, 914, -1038, 31);
            			GivePlayerWeapon(playerid, 6, 1);
            			SetPlayerSkin(playerid, 268);
            			SendClientMessage(playerid, 0xffffff, "Teď jsi  A/An Pracovník-Worker");
            		}
					case 3:
					{
  			            SetPlayerPos(playerid, 914, -1038, 31);
            			GivePlayerWeapon(playerid, 6, 1);
            			SetPlayerSkin(playerid, 228);
            			SendClientMessage(playerid, 0xffffff, "Pracuješ jako A/An Soudce- Judge");
					}
            }
        }
        return 1;
    }
    return 0;
}

CMD:jobs(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_PCLASS, DIALOG_STYLE_LIST, "Jobs Selection", "Sailor\nPolice Officer\nWorker\nJudge", "Ok", "Close");
	return 1;
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...