undefined symbol
#1

Код:
new string2[200];
		format(string2, sizeof(string2), "» Name: %s • Level: %d • Faction: %s • Rank: %s\n",name,plevel,ttext,rtext);
		format(coordsstring, sizeof(coordsstring), "» Sex: %s • Age: %d • SpawnHealth: %.1f • Cash: %s • Bank: %s • NumberPhone: %d\n", atext, age, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);
		strcat(string2,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» DonateRank: %s • PlayingHours: %d • Respect: %d/%d • NumberLotto: %d\n", drank,ptime,exp,expamount,lotto);
		strcat(string2,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» TimesArrested: %d • WantedLevel: %d • MarriedTo: %s • Disease: %s\n", arrests,wanted,married,dtext);
		strcat(string2,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» Kills: %d • Deaths: %d • NextLevel: %d$ • Job: %s\n",kills,deaths,costlevel,jtext);
		strcat(string2,coordsstring);
		format(coordsstring, sizeof(coordsstring), "» FishesCaught: %d • BiggestFish: %d • Drugs: %d • Materials: %d • Pills: %d • Warns: %d\n",fishes,bigfish,drugs,mats,pills,warns);
		strcat(string2,coordsstring);
		ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"player stats",string2,"close","");






PHP код:
E:\fcr.pwn(10037) : error 017undefined symbol "name"
E:\fcr.pwn(10038) : error 017undefined symbol "coordsstring"
E:\fcr.pwn(10038) : error 017undefined symbol "coordsstring"
E:\fcr.pwn(10038) : error 029invalid expressionassumed zero
E
:\fcr.pwn(10038) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors


+1rep if u help me fast
Reply
#2

help me pleaseeee
Reply
#3

You haven't defined the "coordsstring" and "name" variables. Also add the GetPlayerName function to show the player-name.

Код:
new string2[200], coordsstring[128], name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));
Note: Expand the size of "coordsstring" if needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)