Help with Float
#1

I want to check if player is with admin level and give new value for Float:kof,
but i tested with message function and it gives a trash number..

Код:
			new Float:kof = 1;
				//new str[400];
				if(playerDB[i][admin] == 5) kof == 2;
				if(playerDB[i][admin] == 4) kof == 2;
				if(playerDB[i][admin] == 3) kof == 1;
				if(playerDB[i][admin] == 2) kof == 0.7;
				if(playerDB[i][admin] == 1) kof == 0.4;
				if(playerDB[i][vip] == true) kof == 0.2;
				playerDB[i][VersloPelnas] += playerDB[i][VersloPajamos];
				//format(str, sizeof(str), "Verslo koficijentas yra %d", kof);
				//SendClientMessage(i, RED, str );
Reply


Messages In This Thread
Help with Float - by mokinys98 - 26.04.2018, 11:13
Re: Help with Float - by Xportaler - 26.04.2018, 11:17
Re: Help with Float - by mokinys98 - 26.04.2018, 12:00
Re: Help with Float - by CodeStyle175 - 26.04.2018, 12:14
Re: Help with Float - by mokinys98 - 26.04.2018, 12:24
Re: Help with Float - by Bruno13 - 26.04.2018, 13:08
Re: Help with Float - by AdamsLT - 26.04.2018, 13:35
Re: Help with Float - by mokinys98 - 26.04.2018, 14:05
Re: Help with Float - by AdamsLT - 26.04.2018, 14:21
Re: Help with Float - by mokinys98 - 26.04.2018, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)