bool's is bugging.
#1

gello, i creating my new server, in server i have dini register system, no more systems, or scripts..

i type:
new bool:test[MAX_PLAYERS];

onplayercommandtext:

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/check", cmdtext, true, 10) == 0)
    {
        if(test[playerid] == true){
            SendClientMessage(playerid, GREEN,"in bool");}
        else if(test[playerid] == false){
            SendClientMessage(playerid, GREEN,"not in bool");}

        return 1;
    }
    if (strcmp("/inbool", cmdtext, true, 10) == 0)
    {
        test[playerid] = true;
        return 1;
    }
    if (strcmp("/outbool", cmdtext, true, 10) == 0)
    {
        test[playerid] = false;
        return 1;
    }
    return 0;
}
and i start server, when i spawn, first y type /check command, and for me send message "in bool" whyy??

ant when y type /outbool , and type /check server sends me message: "in bool" the hell is bugging? i understand?
Reply


Messages In This Thread
bool's is bugging. - by karolis1478 - 20.12.2012, 15:10
Re: bool's is bugging. - by smeti - 20.12.2012, 15:25
Re: bool's is bugging. - by karolis1478 - 20.12.2012, 15:29
Re: bool's is bugging. - by Vince - 20.12.2012, 15:30
Re: bool's is bugging. - by karolis1478 - 20.12.2012, 15:31
Re: bool's is bugging. - by karolis1478 - 20.12.2012, 15:35

Forum Jump:


Users browsing this thread: 2 Guest(s)