07.04.2017, 09:32
Nonono, well, yeah that'd make more sense, but that's not the problem itself.
Let's start again, create a new string along the others already declared:
Inside the loop, change the string you are formatting for the new one and add that formatted string to the old string you had:
Now, if you noticed we deleted some part of the text to avoid it to repeat itself, you just have to add it again once the loop ends, the following condition should be a perfect place for it
Let's start again, create a new string along the others already declared:
PHP код:
new string[128],stringz[128],newStringOs[70];
PHP код:
format(newStringOs, sizeof newStringOs, "%s (ID:%d) Level: [%d] (%s)\n", GetName( i ), i , pData[i][Admin] , admtext); // change the name of the string here to the new one and add a \n new line
strcat(string,newStringOs); //and concatenate them together
PHP код:
if(count >= 0)
{
format(newStringOs,sizeof newStringOs,"\nTotal ZoneX admins %d",count); // set the string with the deleted text
strcat(string,newStringOs); // add the removed text again at the end of the string
ShowPlayerDialog( playerid , 190 , DIALOG_STYLE_MSGBOX , stringz , string, "Ok" , "Close" );
}