not reading right
#7

Код HTML:
function GetPlayers(option[])
{
	new nrr = 0, id = 1002;
	if(IsNumeric(option)) {
		new i = strval(option);
		if(IsPlayerConnected(i))
		id = i;
		else id = INVALID_PLAYER_ID;
	} else {
		foreach(new i : Player) {
			if(strfind(GetName(i), option, true) != -1)
			{
				nrr ++;
			}
		}
		if(nrr > 10) id = 1000;
		if(nrr == 0) id = INVALID_PLAYER_ID;
		if(nrr > 1 && nrr <= 10) id = 1001;

		foreach(new i : Player) {
			if(strfind(GetName(i), option, true) != -1 && id == 1002)
			{
				id = i;
			}
		}
	}
	return id;
}
the message's are getting right that's the point

and the funny thing i have a FS that gives me money just by GivePlayerMoney(playerid, amount); and i am getting the money but on my FS i can't they money will give me back and he wont receive them
Reply


Messages In This Thread
not reading right - by StR_MaRy - 05.11.2016, 16:37
Respuesta: not reading right - by Swedky - 05.11.2016, 17:12
Re: not reading right - by StR_MaRy - 05.11.2016, 17:26
Respuesta: not reading right - by Swedky - 05.11.2016, 17:36
Re: not reading right - by StR_MaRy - 05.11.2016, 17:44
Respuesta: not reading right - by Swedky - 05.11.2016, 19:22
Re: not reading right - by StR_MaRy - 06.11.2016, 01:16

Forum Jump:


Users browsing this thread: 1 Guest(s)