pawn Code:
public ShowPlayerLevels(playerid, kamid)
{
new lvl[256], name[24], apie[50];
GetPlayerName(playerid, name, 24);
format(apie, sizeof(apie), "Informacija apie %s", name);
new s = playerDB[playerid][Strlvl];
new sxp = playerDB[playerid][Strxp];
new sp = playerDB[playerid][Speedlvl];
new spxp = playerDB[playerid][Speedxp];
new p = playerDB[playerid][Protlvl];
new pxp = playerDB[playerid][Protxp];
new t = playerDB[playerid][Teisesaugoslvl];
new txp = playerDB[playerid][Teisesaugosxp];
new h = playerDB[playerid][Pagalboslvl];
new hxp = playerDB[playerid][Pagalbosxp];
new v = playerDB[playerid][Vairavimolvl];
new vxp = playerDB[playerid][Vairavimoxp];
format(lvl, sizeof(lvl), "Stiprumo lygis: %i (%i/%i)\nVikrumo lygis: %i (%i/%i)\nProtingumo lygis: %i (%i/%i)\n\nTeisėsaugos lygis: %i (%i/%i)\nPirmos pagalbos lygis: %i (%i/%i)\nVairavimo lygis: %i (%i/%i)\n\nЋvejybos lygis: %i (%i/%i)", s, sxp, s*210, sp, spxp, sp*210, p, pxp, p*210, t, txp, t*210, h, hxp, h*210, v, vxp, v*210);
ShowPlayerDialog(kamid, 110, DIALOG_STYLE_MSGBOX, apie, lvl, "Gerai", "");
return 1;
}
This works perfectly, but i think, this will cause more lag than the old one...