View Single Post
Pourya
Member
Join Date: Sep 2011
Location: Iran
Old 08-16-2012 , 12:35   Re: count round and restart after 15 round
Reply With Quote #7

i test it and work probably

your cod is not work
Code:
public team_score()
{
    new team[32];
    read_data(1,team,31);
    if (team[0] == 'C')
    {
        ct_score++
    }
    else if (team[0] == 'T')
    {
        terrorist_score++
    }
}  
but this cod is true
Code:
public team_score()
{
    new team[32];
    read_data(1,team,31);
    if (equal(team,"CT"))
    {
        ct_score = read_data(2);
    }
    else if (equal(team,"TERRORIST"))
    {
        terrorist_score = read_data(2);
    }
}
i test your last post

and this attach file is work true
Attached Files
File Type: sma Get Plugin or Get Source (count_score.sma - 587 views - 1.6 KB)
Pourya is offline
Send a message via Yahoo to Pourya