need help with my dialog ???Easy??? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with my dialog ???Easy??? (
/showthread.php?tid=150223)
need help with my dialog ???Easy??? -
hardstop - 25.05.2010
Код:
if(!strcmp(cmdtext,"/stats", true))
{
new str[128];
format(str, sizeof(str), "Bank Money[%d]",PlayerInfo[playerid][pBankMoney]);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, str);
return 1;
}
Well i tryed to do
dialog /stats like if i type /statsthen it shows the dialog with stats
whats wrong here?
Re: need help with my dialog ???Easy??? -
[MWR]Blood - 25.05.2010
pawn Код:
if(!strcmp(cmdtext,"/stats", true))
Should be
pawn Код:
if(strcmp(cmdtext,"/stats",true)==0)
Re: need help with my dialog ???Easy??? -
hardstop - 25.05.2010
no omg
Код:
new str[128];
format(str, sizeof(str), "Bank Money[%d]",PlayerInfo[playerid][pBankMoney]);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, str);
need example showplayerdialog code for stats that works i just made a cmd something
Re: need help with my dialog ???Easy??? -
hardstop - 25.05.2010
added this and i get these 3 warnings
Код:
if(!strcmp(cmdtext,"/stats", true))
{
new str[128];
format(str, sizeof(str), "Bank Money[%d]",PlayerInfo[playerid][pRaha]);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, str);
return 1;
}
Код:
C:\DOCUME~1\hardstop\Desktop\SAMP~1\GAMEMO~1\test.pwn(587) : warning 202: number of arguments does not match definition
C:\DOCUME~1\hardstop\Desktop\SAMP~1\GAMEMO~1\test.pwn(587) : warning 202: number of arguments does not match definition
C:\DOCUME~1\hardstop\Desktop\SAMP~1\GAMEMO~1\test.pwn(587) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Re: need help with my dialog ???Easy??? -
[MWR]Blood - 25.05.2010
Quote:
Originally Posted by hardstop
no omg
Код:
new str[128];
format(str, sizeof(str), "Bank Money[%d]",PlayerInfo[playerid][pBankMoney]);
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, str);
need example showplayerdialog code for stats that works i just made a cmd something 
|
Try to explain better the next time.
Show line 587.
Re: need help with my dialog ???Easy??? -
woot - 25.05.2010
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
pawn Код:
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, "Player Stats", str, "Ok", "");
Re: need help with my dialog ???Easy??? -
hardstop - 25.05.2010
thnx exora