01.07.2015, 10:03
I have made a stats command and when i add one more thing in stats like i add "Fighting style:" and try to compile so the pawno get stuck and does not respond
CMD:stats(playerid,params[]) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new freeroam = PlayerInfo[playerid][pKills]; new total = PlayerInfo[playerid][pScore]; new skin = GetPlayerSkin(playerid); new admin = PlayerInfo[playerid][pAdmin]; new vip = PlayerInfo[playerid][pVip]; new logged = PlayerInfo[playerid][pLogged]; new ping = GetPlayerPing(playerid); new god = God[playerid]; new fs = fs[playerid]; new string1[900]; format(string1, sizeof string1, ""COL_G"%s(%d)\n\n"COL_G"General\n"COL_W"Logged In: "COL_W"%d\n"COL_W"Admin: "COL_W"%d\n"COL_WHITE"VIP: "COL_W"%d\n\n\n"COL_G"Scores\n"COL_W"FreeRoam Score: "COL_W"%d\n"COL_W"Total Score: "COL_W"%d\n\n\n"COL_G"Game \n"COL_W"Ping: "COL_W"%i\n"COL_W"Godmod: "COL_W"%d\n"COL_W"Skin: "COL_W"%d", name,playerid,logged,admin,vip,freeroam,total,ping,god,skin); ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX,"{44A1D0}Your Account Stats{FFFFFF}:",string1,"Ok",""); return 1; }
format(string1, sizeof string1, ""COL_G"%s(%d)\n\n"COL_G"General\n"COL_W"Logged In: "COL_W"%d\n"COL_W"Admin: "COL_W"%d\n"COL_WHITE"VIP: "COL_W"%d\n\n\n"COL_G"Scores\n"COL_W"FreeRoam Score: "COL_W"%d\n"COL_W"Total Score: "COL_W"%d\n\n\n"COL_G"Game \n"COL_W"Ping: "COL_W"%i\n"COL_W"Godmod: "COL_W"%d\n"COL_W"Skin: "COL_W"%d", name,playerid,logged,admin,vip,freeroam,total,ping,god,skin);