[Help] Error with / admins - 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: [Help] Error with / admins (
/showthread.php?tid=624398)
[Help] Error with / admins -
klebysom - 15.12.2016
I tried to make an / admins that shows all the admins set but does not appear the admins
Image:
http://imgur.com/a/gTt5F
code:
http://pastebin.com/g05HgaPA
Re: [Help] Error with / admins -
Swedky - 15.12.2016
1. You should loop through all players connected.
2. Use "%s" instead "% s".
PHP код:
// dcmd_admins
for(new i = 0; i <= GetPlayerPoolSize(); i++)
{
if(admin == 0) continue;
// Add to admins list
}
Re: [Help] Error with / admins -
Sew_Sumi - 16.12.2016
Just going to also say, the pragma abuse in here is real. Fix the errors rather than hiding them.
WTF is up with line 55 (and others) on the paste...