20.12.2012, 15:10
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:
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?
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;
}
ant when y type /outbool , and type /check server sends me message: "in bool" the hell is bugging? i understand?