Raised This Month: $ Target: $400
 0% 

Problem with Float in checking its figures


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DEV BK
New Member
Join Date: Nov 2019
Old 11-08-2019 , 12:51   Problem with Float in checking its figures
Reply With Quote #1

Hello, i have this code (i can't post it all for some reason's) :

Code:
new Float:WallStatus[33][3]

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say /wallhack", "WallOnOff")

        // ....
}

public client_disconnect(id) {

	WallStatus[id][1] = 0.0
}
public WallOnOff(id)
{
	if((WallStatus[id][1] = 0.0))
	{
		WallStatus[id][1] = 1.0;
		
		
	}
	else
	{
		WallStatus[id][1] = 0.0;
	}
}

public Wallhack(id, walls) 
{
	if(is_user_alive(id) && (WallStatus[id][1] = 1.0)) 
	{
		// ...
	}
}
The problem its cannot check if WallStatus[id][1] is 1.0 or 0.0, i tested the code without /wallhack switch and its worked with no problems but nothing happen when use this client command : /wallhack

what i missing?? please help
DEV BK is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode