SA-MP Forums Archive
help me please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me please (/showthread.php?tid=648004)



help me please - Osamakurdi - 14.01.2018

I Have This Code
Код:
 PInfo[playerid][Level] = dini_Int(file,"Level");
		    if(PInfo[playerid][Level] == 5)
			{
				SCM(playerid, COLOR_GREEN, "Logged In As Admin Level 5");
			}
This When I Login It's Check If player Admin lvl = 5 it will say Logged In As Admin Level 5
But its not doing that. ? why ?
Help please


Re: help me please - Meller - 14.01.2018

printf("player(%i) has level: %i", playerid, PInfo[playerid][Level]);


Re: help me please - Osamakurdi - 14.01.2018

Quote:
Originally Posted by Meller
Посмотреть сообщение
printf("player(%i) has level: %i", playerid, PInfo[playerid][Level]);
Where Do I Have To Put it ?


Re: help me please - Runn3R - 14.01.2018

Before the if statement obviously.

And then check your console.