SA-MP Forums Archive
Admins command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admins command (/showthread.php?tid=632605)



Admins command - AnoTek - 16.04.2017

script : https://gyazo.com/0decc821b047ea4239d7e7dfa1684b7e

error : https://gyazo.com/38a5bc6bb14231eedfe0c53e1e15d660

pls help


Re: Admins command - LEOTorres - 16.04.2017

This third parameter of cache_get_field_content is where to store the data.

For instance:

Код:
new data[128];
cache_get_field_content(i, "name", data);
You've also commented

Код:
new linie[256];
on line 20849.


Re: Admins command - Nyitz - 16.04.2017

Код:
20863: format(linie, 256, "%d{FFFFFF} %s - %s, levelu, playerid, status);
Should be:

Код:
20863: format(linie, sizeof(linie), "%d{FFFFFF} %d - %s, levelu, playerid, status);
playerid is an integer so it's %d, not %s. Not sure if that could be the reason though.