[HELP] A small problem
#1

Hello guys, I need a little help with this two commands, I'm trying to put rank and team to the commands, but this don't work.

Код:
if(strcmp(cmd, "/olspd", true) == 0)
	{
	  if(gTeam[playerid] == TEAM_LSPD)
	  {
	    if(PlayerInfo[playerid][PoliceRank] >= 1)
	    {
				MoveObject(olspd,246.411529,72.640029,1000.911437,4.0);
				return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, "	You are not authorized to use that command.");
			  return 1;
			}
		}
		else
		{
		  SendClientMessage(playerid, COLOR_GREY, "	You are not a Police Officer.");
 		}
	}
Код:
if(strcmp(cmd, "/clspd", true) == 0)
	{
	  if(gTeam[playerid] == TEAM_LSPD)
	  {
	    if(PlayerInfo[playerid][PoliceRank] >= 1)
	    {
				MoveObject(olspd,246.411529,72.640029,1003.640625,4.0);
				return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, "	You are not authorized to use that command.");
			  return 1;
			}
		}
		else
		{
		  SendClientMessage(playerid, COLOR_GREY, "	You are not a Police Officer.");
		  return 1;
		}
	}
Thanks
Reply
#2

what errors you get? Post it
Reply
#3

Quote:
Originally Posted by ExtremePower
what errors you get? Post it
Nah, no erros, if I had erros, I would have posted it.
Reply
#4

where is problem then? That dont working? And say me what you wanna that commands to do example /example (that command give 1000$)

Reply
#5

Quote:
Originally Posted by ExtremePower
where is problem then? That dont working? And say me what you wanna that commands to do example /example (that command give 1000$)
If you payed a little more attention to the text and the command, you can see how I'm trying to put gTeam and PoliceRank to the commands, but what I did don't work.
Reply
#6

BUMP

Any ideas?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)