Raised This Month: $ Target: $400
 0% 

Question about register_plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 08-08-2018 , 15:53   Re: Question about register_plugin
Reply With Quote #1

2nd and 3rd version use more lines, that's the difference.
__________________
Relaxing is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-08-2018 , 15:58   Re: Question about register_plugin
Reply With Quote #2

Quote:
Originally Posted by Relaxing View Post
2nd and 3rd version use more lines, that's the difference.
When should I use new const & static const and #define?

For example;
create_entity("info_target");
and
entity classname

Why people use this code?
PHP Code:
new const entity[] = "info_target";
new const 
classname[] = "parachute" example

create_entity
(entity);
entity_set_string(para_ent[id],EV_SZ_classname,classname); 
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }


Last edited by PurposeLessx; 08-08-2018 at 16:00.
PurposeLessx 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 12:49.


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