SA-MP Forums Archive
Return SendClientMessage and Show Player 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: Return SendClientMessage and Show Player Dialog (/showthread.php?tid=522264)



Return SendClientMessage and Show Player Dialog - qUneT - 26.06.2014

PHP код:
if(TutorialTimer[playerid] == 1) return SendClientMessage(playerid,-1,"{33FF33}Te rog sa termini de citit."),ShowPlayerDialog(playerid6970DIALOG_STYLE_MSGBOX"Tutorial 1","{FFFFFF}Mod de Joc\n\n\nPentru ca acesta este un Server RolePlay trebuie\nsa respecti niste reguli esentiale care iti vor fii \naratate in continuare.""Ok"""); 
Who i can return SendClientMessage and ShowPlayerDialog at the same time


Re: Return SendClientMessage and Show Player Dialog - DogeMan - 26.06.2014

U can't return 2 values, it is not necessary.


Re: Return SendClientMessage and Show Player Dialog - Beckett - 26.06.2014

pawn Код:
if(TutorialTimer[playerid] == 1) return SendClientMessage(playerid,-1,"{33FF33}Te rog sa termini de citit."); ShowPlayerDialog(playerid, 6970, DIALOG_STYLE_MSGBOX, "Tutorial 1","{FFFFFF}Mod de Joc\n\n\nPentru ca acesta este un Server RolePlay trebuie\nsa respecti niste reguli esentiale care iti vor fii \naratate in continuare.", "Ok", "");
Or like that.
pawn Код:
if(TutorialTimer[playerid] == 1)
{
    SendClientMessage(playerid,-1,"{33FF33}Te rog sa termini de citit.");
    ShowPlayerDialog(playerid, 6970, DIALOG_STYLE_MSGBOX, "Tutorial 1","{FFFFFF}Mod de Joc\n\n\nPentru ca acesta este un Server RolePlay trebuie\nsa respecti niste reguli esentiale care iti vor fii \naratate in continuare.", "Ok", "");
}
SendClientMessage(); ShowPlayerDialog();