Raised This Month: $32 Target: $400
 8% 

Solved Is this code functional/correct ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 02-20-2019 , 11:26   Is this code functional/correct ?
Reply With Quote #1

Hello, I am running this code from a public function with 2 arguments ( one of which is unlisted/useless in this question, and the other one 'pid[]' ). I want to set bool to true for a player, or well, the passed value pid, but that failed to compile. Tried this code but dunno if done correctly :
PHP Code:
            new id get_user_index(pid)
            if(
equal(txt,pid)) isVIP[id]=true 
Thanks

Last edited by thEsp; 02-20-2019 at 14:05.
thEsp is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-20-2019 , 11:49   Re: Is this code functional/correct ?
Reply With Quote #2

Show more code. Instead of answering your question as you asked, it would be best to show the root of the problem you are trying to solve. There may be a better way.
__________________

Last edited by Bugsy; 02-20-2019 at 11:50.
Bugsy is offline
thEsp
BANNED
Join Date: Aug 2017
Old 02-20-2019 , 11:56   Re: Is this code functional/correct ?
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
Show more code. Instead of answering your question as you asked, it would be best to show the root of the problem you are trying to solve. There may be a better way.
Never mind actually, It was my mistake (forgot to register plugin in plugins.ini config).
thEsp is offline
Reply



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 17:15.


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