23.09.2015, 19:48
foreach(new i: Player)
{
format(string, sizeof(string), "%s%s\t%d\n", string, GetPlayerNameEx(i), pInfo[i][pScore]);
}
I would like to use the tablist headers dialog this way, but if I do something like:
foreach(new i: Player)
{
string = "Name\tScore\n";
format(string, sizeof(string), "%s%s\t%d\n", string, GetPlayerNameEx(i), pInfo[i][pScore]);
}
It will bug out and won't work properly. Can you please tell me how to use it correctly? I want to use this way and please, don't show me the example from the SAMP Filterscript.
{
format(string, sizeof(string), "%s%s\t%d\n", string, GetPlayerNameEx(i), pInfo[i][pScore]);
}
I would like to use the tablist headers dialog this way, but if I do something like:
foreach(new i: Player)
{
string = "Name\tScore\n";
format(string, sizeof(string), "%s%s\t%d\n", string, GetPlayerNameEx(i), pInfo[i][pScore]);
}
It will bug out and won't work properly. Can you please tell me how to use it correctly? I want to use this way and please, don't show me the example from the SAMP Filterscript.