show stats bug
#1

code (the bug set me in sa news faction and someting like that):

format(coordsstring, sizeof(coordsstring),"%s - (Level: %d) - (Playing hours: %d) - (Gender: %s) - (Age: %d) - (Phone number: %d) - (Warnings: %d)", GetPlayerNameEx(targetid), level, phours, sext, age, pnumber, warns);
SendClientMessage(playerid, COLOR_LIGHTGREEN, coordsstring);
format(coordsstring, sizeof(coordsstring),"(%s: %s) - (Rank: %s [%d]) - (Division: %s) - (Job: %s [lvl: %d]) - (Job 2: %s [lvl: %d])", facgang, employer, rank, PlayerInfo[targetid][pRank], division, jtext, jlevel, jtext2, jlevel2);
SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
format(coordsstring, sizeof(coordsstring),"(Total wealth: $%d) - (Cash: $%d) - (Bank balance: $%d) - (Insurance: %s) - (Married to: %s)", totalwealth, cash, bank, insur, married);
SendClientMessage(playerid, COLOR_LIGHTGREEN, coordsstring);
format(coordsstring, sizeof(coordsstring),"(Respect points: %d/%d [$%d]) - (Upgrade Points: %d) - (Spawn armor: %.1f) - (Health: %.1f) - (Armor: %.1f)", respect, expamount, costlevel, upgrade, sarmor, health, armor);
SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
format(coordsstring, sizeof(coordsstring),"(Crimes: %d) - (Arrests: %d) - (Wanted Level: %d) - (Materials: %d) - (Pot: %d) - (Crack: %d) - (Packages: %d) - (Crates: %d)", crimes, arrests, wanted, mats, pot, crack, packages, crates);
SendClientMessage(playerid, COLOR_LIGHTGREEN, coordsstring);
format(coordsstring, sizeof(coordsstring),"(Gascan: %d) - (Cigars: %d) - (Sprunk: %d) - (Spray: %d) - (Referral Tokens: %d) - (VIP Donator: %s)",gascan ,cigars, sprunk, spray, reftokens, donatortxt);
SendClientMessage(playerid, COLOR_FORSTATS, coordsstring);
format(coordsstring, sizeof(coordsstring), "Approximate time next Paycheck:%d Minutes", floatround((3600-PlayerInfo[targetid][pConnectSeconds]) / 60));
SendClientMessage(playerid, COLOR_ORANGE, coordsstring);
SendClientMessage(playerid,COLOR_LIME, "/inventory to see other items");
Reply
#2

put "[PHP]-tags" around you code because this hurts my eyes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)