Raised This Month: $ Target: $400
 0% 

Crash when creating a bot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shauli
Member
Join Date: Jun 2018
Old 06-22-2018 , 15:47   Re: Crash when creating a bot
Reply With Quote #21

Quote:
Originally Posted by marcelowzd View Post
Now that you said it, he is very far away, but i can see his name in front of me.
I think I know what your problem is.
You used cs_set_user_team without the client (or in this case, your fake player) actually joining a team via 'jointeam' and then 'joinclass', so he's floating somewhere around the map and teleporting to some weird origins without any explanations.

Try to do engclient_cmd(g_iBotIndex, "jointeam", "1"); and joinclass 1.

Edit: looked at Bugys's code, i'm pretty certain that's the problem. He did this:
PHP Code:
    engclient_cmdg_BotID"jointeam"szTeam ); 
    
engclient_cmdg_BotID"joinclass""1" ); 
Do this instead of cs_set_user_team.

Last edited by shauli; 06-22-2018 at 15:49.
shauli 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 17:29.


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