changing interger with percent sign
#1

Hello,

I saw some lines in a script and I tried everything to understand it (looked in samp wiki, without any results), used ****** and at the end I kept changing the values to figure out a pattern, but it was hopeless..
I can't figure out what this "%" DOES or means:

Код:
new newstatus = 1;

	newstatus %= 2;
	if(newstatus == 0)strcat(newname, "test");
Can someone please explain this? What is it and what is it used for?
Reply


Messages In This Thread
changing interger with percent sign - by eSPeZet - 08.02.2018, 21:22
Re: changing interger with percent sign - by Private200 - 08.02.2018, 21:35
Re: changing interger with percent sign - by eSPeZet - 08.02.2018, 21:40
Re: changing interger with percent sign - by AmigaBlizzard - 09.02.2018, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)