This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

While buffer overflow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-Striker-
Member
Join Date: Jun 2010
Old 07-31-2010 , 18:56   While buffer overflow
Reply With Quote #1

read title:

PHP Code:
public Action:env_roundstart(Handle:event, const String:name[], bool:dontBroadcast)
{
    
ts GetTeamClientCount(2);
    
cts GetTeamClientCount(3);
    while(
ts 2)
    {
        
ServerCommand("bot_add");
        
ts GetTeamClientCount(2);
    }
    while(
cts 2)
    {
        
ServerCommand("bot_add");
        
cts GetTeamClientCount(3);
    }
    
ts GetTeamClientCount(2);
    
cts GetTeamClientCount(3);
    if(
ts+cts >= 4)
    {
        
ServerCommand("bot_kick");
    }

Whats wrong?
And how can i count real players only?
Thank you for help

Last edited by -Striker-; 07-31-2010 at 19:15.
-Striker- is offline
-Striker-
Member
Join Date: Jun 2010
Old 07-31-2010 , 20:06   Re: While buffer overflow
Reply With Quote #2

okay: i havent wirte a row with return;
-Striker- 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 15:28.


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