Nister_Just
Умник
Есть способы оптимизации?
Код:
static const fmt_str[] = "TEST %i";
new string[sizeof(fmt_str) + (-2 + 6)],str[-2 + MAX_PLAYER_NAME];
format(string,sizeof(string),"TEST %i",pInfo[playerid][pHclass][0]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][0],string);
format(string,sizeof(string),fmt_str,pInfo[playerid][pHclass][1]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][1],string);
format(string,sizeof(string),"TEST %i",pInfo[playerid][pHclass][2]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][2],string);
format(string,sizeof(string),"TEST %i",pInfo[playerid][pHclass][3]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][3],string);
format(string,sizeof(string),"TEST %i",pInfo[playerid][pHclass][4]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][4],string);
format(str,sizeof(str),"%s",pInfo[playerid][pName]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][6],str);
format(string,sizeof(string),"%i TEST",pInfo[playerid][pLevel]);
PlayerTextDrawSetString(playerid,Class_PTD[playerid][7],string);
