What is problem here?
#1

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

What is in the line 815?
Reply
#3

you can strcat and format in same..
First format the string and then use strcat.
Reply
#4

Код:
strcat(str,""embed_blue"« "embed_white"Name: "embed_blue"%s\n",pName[playerid]);
This is 815
Reply
#5

Format it.
Then use strcat.
You can use format and strcat. But use format first before strcat.
Reply
#6

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");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)