REP+ if you help me
#2

Well, from what I understand in the list of players that have the infernus, I'll give you a hint you can do the following: declare a variable playerdata [playerid] [pInfernus] and when the player buys an infernus you put playerdata [playerid ] [pinfernus] = 1; it will be easier to make the list of who has infernus on the server. list below:
Код:
CMD:search(playerid, params[])
{
	new car[15], String[128];
	if(sscanf(params, "s[15]", car)) return SendClientMessage(playerid, -1, "USE: /search [car]");
	if(strcmp(params, "inf", true))
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
		    if(pData[i][pInfernus] > 0)
		    {
		    	format(String, sizeof(String), "%s\n", GetName(i));
		    	ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Infernus", String, "Botton", "Botton1");
			}
		}
	}
	return 1;
}

GetName(playerid)
{
	new aname[MAX_PLAYER_NAME];
 	GetPlayerName(playerid, aname, sizeof(aname));
	return aname;
}
Reply


Messages In This Thread
REP+ if you help me - by Filbert - 09.01.2018, 00:48
Re: REP+ if you help me - by DelK - 09.01.2018, 01:05
Re: REP+ if you help me - by JasonRiggs - 09.01.2018, 10:19
Re: REP+ if you help me - by Dayrion - 09.01.2018, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)