SA-MP Forums Archive
Help dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help dialog (/showthread.php?tid=653386)



Help dialog - leobpo - 03.05.2018

Someone pass me to dialog please?

PHP код:
if (strcmp(cmd"/rg"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
gPlayerLogged[playerid] != 0)
            {
                
ShowStats(playerid,playerid);
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "* %s Abre a Carteira e confere sua Identidade(RG)."sendername);
                
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Vocк nгo esta logado !");
            }
        }
        return 
1;
    } 



Re: Help dialog - TitoRayne - 03.05.2018

try using

Код:
ShowPlayerDialog



Re: Help dialog - Milak - 04.05.2018

ShowStats(playerid,playerid);
Are u sure you should put "playerid" twice?