13.03.2014, 17:29
Hi,
I got too long line when i tried to make this little system so i tried to do it with more lines and strings with strcat but it's not working
I got too long line when i tried to make this little system so i tried to do it with more lines and strings with strcat but it's not working
Код:
new string[128], text[128], text1[128],text2[128], name[MAX_PLAYER_NAME]; GetPlayerName(clickedplayerid, name, sizeof(name)); format(text1, sizeof(text1), ""COL_BLUE"DM score: "COL_WHITE"%d\n"COL_BLUE"Deaths: "COL_WHITE"%d\n"COL_BLUE"Race Score: "COL_WHITE"%d\n"COL_BLUE"Reaction test won:"COL_WHITE" %d", PlayerInfo[clickedplayerid][pKills], PlayerInfo[clickedplayerid][pDeaths], PlayerInfo[clickedplayerid][pRscore], PlayerInfo[clickedplayerid][pReaction]); format(text2, sizeof(text2), ""COL_BLUE"Online:"COL_WHITE" %d Days %d Hours %d Minutes",PlayerInfo[clickedplayerid][pDay], PlayerInfo[clickedplayerid][pHour], PlayerInfo[clickedplayerid][pMin]); strcat(text, text1); strcat(text, text2); format(string, sizeof(string), ""COL_BLUE"STATS | "COL_WHITE"%s"COL_BLUE" |", name); ShowPlayerDialog(playerid, 1692, DIALOG_STYLE_MSGBOX, string, text, "OK", "");