Raised This Month: $ Target: $400
 0% 

Solved Take Player +attack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
damage220
Senior Member
Join Date: Jul 2022
Location: Ukraine
Old 07-17-2022 , 10:44   Re: Take Player +attack
Reply With Quote #4

I have no idea which method is better, but you may try both. I would recommend to count how many times a method is called.
PHP Code:
public client_PreThink(cid)
{
    static 
count 0;

    
client_print(cidprint_chat"client_PreThink call #%d", ++count);
}

public 
ClientCommand_Instant(cidhandle)
{
    static 
count 0;

    
client_print(cidprint_chat"ClientCommand_Instant call #%d", ++count);

And choose the one that has less number.
PS: try to avoid nested "if" whenever possible.

Last edited by damage220; 07-17-2022 at 18:30.
damage220 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 15:40.


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