Line is too long
#8

Quote:
Originally Posted by lukas567
View Post
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...
No it wont. Difference in some milliseconds doesnt matter.
Reply


Messages In This Thread
Line is too long - by lukas567 - 23.04.2012, 11:22
Re: Line is too long - by Ballu Miaa - 23.04.2012, 11:32
Re: Line is too long - by lukas567 - 23.04.2012, 11:56
Re: Line is too long - by Ballu Miaa - 23.04.2012, 12:00
Re: Line is too long - by lukas567 - 23.04.2012, 12:14
Re: Line is too long - by Ballu Miaa - 23.04.2012, 12:17
Re: Line is too long - by lukas567 - 23.04.2012, 12:35
Re: Line is too long - by Ballu Miaa - 23.04.2012, 13:31

Forum Jump:


Users browsing this thread: 3 Guest(s)