bool's is bugging.
#5

#include <a_samp>

new bool:tikrinu[MAX_PLAYERS];
#define GREEN 0x00C2ECFF
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}



public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}


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

return 1;
}
if (strcmp("/inbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = true;
return 1;
}
if (strcmp("/outbool", cmdtext, true, 10) == 0)
{
tikrinu[playerid] = false;
return 1;
}
return 0;
}

and still server saying that i'am in bool if I type /outbool cmd..
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: 1 Guest(s)