Bug Admin
#2

You should be using strcat instead of format in the following line inside the loop.

PHP код:
formatstring128"%s (ID:%d) Level: [%d] (%s)\n\nTotal ZoneX admins %d"GetName), pData[i][Admin] , admtextcount); 
What is happening right now is that, every iteration of the loop you are 'resetting' the string and writing a new thing on its place, instead of adding it which is what you want to do.

This is the function you should use: https://sampwiki.blast.hk/wiki/Strcat

Also, you should erase the ShowPlayerDialog function from the loop, for logical reasons.

As an extra, allow me to warn you that the following is totally pointless:

PHP код:
formatstringz 128,"Online Admins");
..
formatstringz 128 ,"No Admins Online "); 
As you can just write that up in the ShowPlayerDialog function itself.
Reply


Messages In This Thread
Bug Admin - by Loinal - 07.04.2017, 08:44
Re: Bug Admin - by Toroi - 07.04.2017, 09:00
Re: Bug Admin - by Loinal - 07.04.2017, 09:08
Re: Bug Admin - by Toroi - 07.04.2017, 09:17
Re: Bug Admin - by Loinal - 07.04.2017, 09:20
Re: Bug Admin - by Toroi - 07.04.2017, 09:32
Re: Bug Admin - by Loinal - 08.04.2017, 08:25
Re: Bug Admin - by denNorske - 08.04.2017, 08:53
Re: Bug Admin - by Loinal - 08.04.2017, 10:02
Re: Bug Admin - by denNorske - 08.04.2017, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)