19.02.2014, 13:29
Here is my code :
When i recompile it there's no error pops up. But when i try it on game it shows this :
![](http://s0.uploads.im/MtVLQ.png)
PLEASE HELP ME! Thank you
Код:
CMD:statses(playerid, params[]) { new codordsstring[768]; new recodordsstring[768]; new health = PlayerInfo[playerid][pHealth]; new armor = PlayerInfo[playerid][pArmor]; new cash = GetPlayerCash(playerid); new sext = PlayerInfo[playerid][pSex]; new job1 = PlayerInfo[playerid][pJob]; new job2 = PlayerInfo[playerid][pJob2]; new jlevel = PlayerInfo[playerid][pJob]; new jlevel2 = PlayerInfo[playerid][pJob2]; new married = PlayerInfo[playerid][pMarriedTo]; new insur = PlayerInfo[playerid][pInsurance]; new upgradep = PlayerInfo[playerid][gPupgrade]; new age = PlayerInfo[playerid][pAge]; new ptime = PlayerInfo[playerid][pConnectTime]; new account = PlayerInfo[playerid][pAccount]; new nxtlevel = PlayerInfo[playerid][pLevel]+1; new exp = PlayerInfo[playerid][pExp]; new expamount = nxtlevel*levelexp; new costlevel = nxtlevel*levelcost; new drank = PlayerInfo[playerid][pDonateRank]; new level = PlayerInfo[playerid][pLevel]; new totalwealth = account + cash; format(codordsstring, sizeof(codordsstring),"{0xFFFF00AA}VIP LEVEL: %s\r\n{FFFFFF}Level: %d\r\n{FFFFFF}Gender: %s\r\n{FFFFFF}Age: %d\r\n{FFFFFF}Cash: %d\r\n{FFFFFF}Health: %d.1f\r\n{FFFFFF}Armor: %d.1f", drank,level,sext,age,totalwealth,health,armor); strcat(recodordsstring, codordsstring, sizeof(recodordsstring)); format(codordsstring, sizeof(codordsstring),"\r\n{FFFFFF}Married to: %s\r\n{FFFFFF}Playing Hours: %d\r\n{FFFFFF}Upgrade Points: %d\r\n{FFFFFF}Next Level: %d/%d($%d)\r\n{FFFFFF}Job1: %s\r\n{FFFFFF}Job2: %s\r\n{FFFFFF}Insurance: %s\r\n", married,ptime,upgradep,exp,expamount,costlevel,job1,job2,insur); strcat(recodordsstring, codordsstring, sizeof(recodordsstring)); ShowPlayerDialog(playerid, 3881, DIALOG_STYLE_MSGBOX, "STATS",codordsstring,"Next Page","Close"); return 1; }
![](http://s0.uploads.im/MtVLQ.png)
PLEASE HELP ME! Thank you