What is problem here? -
Sanady - 01.12.2012
Titile is saying :
code:
pawn Код:
new string[MAX_STRING];
strcat(str,""embed_blue"« "embed_white"General Player Status\n");
strcat(str,""embed_blue"« "embed_white"Name: "embed_blue"%s\n",pName[playerid]);
strcat(str,""embed_blue"« "embed_white"Money: "embed_blue"%d\n",pInfo[playerid][pMoney]);
strcat(str,""embed_blue"« "embed_white"XP: "embed_blue"%d\n",pInfo[playerid][pXP]);
strcat(str,""embed_blue"« "embed_white"Kills: "embed_blue"%d\n",pInfo[playerid][pKills]);
strcat(str,""embed_blue"« "embed_white"Deaths: "embed_blue"%d\n",pInfo[playerid][pDeaths]);
strcat(str,""embed_blue"« "embed_white"Score: "embed_blue"%d\n",pInfo[playerid][pScore]);
strcat(str,""embed_blue"« "embed_white"Weapon Status\n"
strcat(str,""embed_blue"« "embed_white"Primary Weapon Level: "embed_blue"%d\n",PrimaryWeaponLevel[playerid]
strcat(str,""embed_blue"« "embed_white"Secondary Weapon Level: "embed_blue"%d\n",SecondaryWeaponLevel[playerid]
strcat(str,""embed_blue"« "embed_white"Tertiary Weapon Level: "embed_blue"%d",ThirdaryWeaponLevel[playerid]);
ShowPlayerDialog(playerid,1111,DIALOG_STYLE_MSGBOX,""embed_white"Stats",string,"Back","Cancel");
ERRORs
Код:
D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(815) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: What is problem here? -
JaKe Elite - 01.12.2012
What is in the line 815?
Re: What is problem here? -
[MM]RoXoR[FS] - 01.12.2012
you can strcat and format in same..
First format the string and then use strcat.
Re: What is problem here? -
Sanady - 01.12.2012
Код:
strcat(str,""embed_blue"« "embed_white"Name: "embed_blue"%s\n",pName[playerid]);
This is 815
Re: What is problem here? -
JaKe Elite - 01.12.2012
Format it.
Then use strcat.
You can use format and strcat. But use format first before strcat.
Re: What is problem here? -
[MM]RoXoR[FS] - 01.12.2012
pawn Код:
new tstring[200];
new string[MAX_STRING];
strcat(string,""embed_blue"« "embed_white"General Player Status\n");
format(tstring,200,""embed_blue"« "embed_white"Name: "embed_blue"%s\n",pName[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Money: "embed_blue"%d\n",pInfo[playerid][pMoney]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"XP: "embed_blue"%d\n",pInfo[playerid][pXP]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Kills: "embed_blue"%d\n",pInfo[playerid][pKills]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Deaths: "embed_blue"%d\n",pInfo[playerid][pDeaths]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Score: "embed_blue"%d\n",pInfo[playerid][pScore]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Weapon Status\n");
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Primary Weapon Level: "embed_blue"%d\n",PrimaryWeaponLevel[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Secondary Weapon Level: "embed_blue"%d\n",SecondaryWeaponLevel[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Tertiary Weapon Level: "embed_blue"%d",ThirdaryWeaponLevel[playerid]);
strcat(string,tstring);
ShowPlayerDialog(playerid,1111,DIALOG_STYLE_MSGBOX,""embed_white"Stats",string,"Back","Cancel");