Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Job Dialog help

$
0
0
So i make a dialog style to accept job its working fine no error but in game it say to me :trying to spoof dialog (140)
this is my code any help ?

Code:

CMD:join(playerid, params[])
{
    if(PlayerInfo[playerid][pJob] == 0)
        {
            if(PlayerInfo[playerid][pJob] == 0 && GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid,3.0, 256.971954, 69.655586, 1003.640625))
                {
                        ShowPlayerDialog(playerid, 140, DIALOG_STYLE_MSGBOX, "{FFFFFF}Detective", "{FFFFFF}Would you like this to be hired as a {FFFF00}Detective?", "Yes", "No");
                          GettingJob[playerid] = 1;
                    return 1;
                }


This is in my dialog respone

        if(dialogid == 140)
        {
            if(response)
            {
            GettingJob[playerid] = 0;
            SendClientMessage(playerid, COLOR_YELLOW, "You are now a Detective! Use /jobhelp for more details.");
            }
        }


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>