Comparing integers
#1

Hi,

I've got a stupid question that's been stumbelling me for days.

I'm comparing two integers to see if they're the same and if they're the same, returning true, if not returning false.

This works fine, however if the value "orgid" goes above 15 it returns Server: Unknown Command when I use it as a check in my command.

Код:
DoesOrgExistID(orgid)
{
	new bool: orgExist = false;
	
	if(orgid == oInfo[orgid][OID])
	{
	    orgExist = true;
	    printf("Org does exist");
	}
	
	return orgExist;
}
EDIT: It actually sometimes makes the server unresponsive for some seconds.
Reply


Messages In This Thread
Comparing integers - by CloudLEL - 28.04.2016, 17:19
Re: Comparing integers - by Luis- - 28.04.2016, 17:24
Re: Comparing integers - by CloudLEL - 28.04.2016, 17:28
Re: Comparing integers - by iggy1 - 28.04.2016, 17:28
Re: Comparing integers - by Luis- - 28.04.2016, 17:30
Re: Comparing integers - by CloudLEL - 28.04.2016, 17:30
Re: Comparing integers - by CloudLEL - 28.04.2016, 17:33
Re: Comparing integers - by CrossUSAAF - 28.04.2016, 17:36
Re: Comparing integers - by CloudLEL - 28.04.2016, 17:39
Re: Comparing integers - by iggy1 - 28.04.2016, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)