need help with my dialog ???Easy???
#1

Код:
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?
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/stats", true))
Should be
pawn Код:
if(strcmp(cmdtext,"/stats",true)==0)
Reply
#3

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
Reply
#4

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.
Reply
#5

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.
Reply
#6

https://sampwiki.blast.hk/wiki/ShowPlayerDialog


pawn Код:
ShowPlayerDialog(playerid,4,DIALOG_STYLE_MSGBOX, "Player Stats", str, "Ok", "");
Reply
#7

thnx exora
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)