| Darkskypew |
12-21-2011 08:01 |
Re: Top15 in points
I tried to do so, but that does not work.
PHP Code:
public stats(id, top) { static motd[1500], len len = 0 new g_Vault //new g_text[255] new Namers[33] new Namer[33] new s_Key[255], datas[255], s_APS[32], s_LevelS[32], s_DamageS[32], s_DamageMaxS[32] g_Vault = nvault_open("zombielite") //formatex(s_Key, charsmax(s_Key) , "%s-Name", Names[id]) len += formatex(motd[len], charsmax(motd) - len, "<html><body bgcolor='#000000'></body></html>") len += formatex(motd[len], charsmax(motd) - len, "<center><font color='#FFFFFF'>Счастливые часы !!!</font></center>") for (new i=1; i < 15; i++) { formatex(datas, 255, "%d#%i#%i#%i#%i", Namers, s_APS[i], s_LevelS[i], s_DamageS[i], s_DamageMaxS[i]) replace_all(datas , 255, "#", " ") nvault_get (g_Vault, s_Key, datas, 255) parse (datas, s_APS, 31, s_LevelS, 31, s_DamageS, 31, s_DamageMaxS, 31) new APS1[32], Level1[32], g_DamageEXP1[32], MaxEXP1[32] Namer[i] = str_to_num (Namers) APS1[i] = str_to_num (s_APS) Level1[i] = str_to_num (s_LevelS) g_DamageEXP1[i] = str_to_num (s_DamageS) MaxEXP1[i] = str_to_num (s_DamageMaxS)
len += formatex(motd[len], charsmax(motd) - len, "<font color='#FFFFFF'><tr><td>%d<td>%s<td>%d<td>%d<td>%d<td>%d<td></tr></font", i + 1, Namer, Level1[i], APS1[i], g_DamageEXP1[i], MaxEXP1[i]) } len += formatex(motd[len], charsmax(motd) - len, "</body></html>", "#") show_motd(id, motd, "STATS") }
|