Compailing errors
#9

hmm i found the mistake but what is wrong with it
Код:
	if(strcmp(cmd, "/hdrag", true) == 0)
 	{
	  tmp = strtok(cmdtext, idx);
		giveplayerid = strval(tmp);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /hdrag [PlayerID]");
			return 1;
		}
	  if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
		{
			if(DragTimer[playerid] >= 0)
			{
			  if(PlayerCuffed[giveplayerid] == 1)
				{
					TogglePlayerControllable(giveplayerid, 0);
				}
			  GetPlayerName(giveplayerid, sendername, sizeof(sendername));
		  	GetPlayerName(playerid, playername, sizeof(playername));
			  format(string, sizeof(string), "officer %s let %s to go", playername, sendername);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
				KillTimer(DragTimer[playerid]);
				DragTimer[playerid] = 0;
				TogglePlayerControllable(giveplayerid, 1);
				return 1;
			}
    }
		else
		{
			SendClientMessage(playerid, COLOR_GREY, " You are not cop!");
		}
		return 1;
	}
Reply


Messages In This Thread
Compailing errors - by whitedragon - 18.11.2009, 14:11
Re: Compailing errors - by Kurence - 18.11.2009, 14:45
Re: Compailing errors - by Peter_Corneile - 18.11.2009, 15:03
Re: Compailing errors - by whitedragon - 18.11.2009, 15:04
Re: Compailing errors - by Peter_Corneile - 18.11.2009, 15:05
Re: Compailing errors - by DeathOnaStick - 18.11.2009, 15:10
Re: Compailing errors - by Sayaron - 18.11.2009, 19:29
Re: Compailing errors - by whitedragon - 22.11.2009, 10:07
Re: Compailing errors - by whitedragon - 22.11.2009, 16:33
Re: Compailing errors - by Peter_Corneile - 22.11.2009, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)