PROBLEM WITH CMD CAN FIX :s
#1

Hi, i make this cmd that police, fbi and national guard can open gate at ls airport, but when somebody from that teams type /lso or /lsc he get message YOU ARE NOT COP!

Here is code, i try to fix it but i cant :S

Код:
if (strcmp(cmdtext, "/lso", true)==0)
	{
		if(PlayerInfo[playerid][pTeam] == 1 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pTeam] == 3)
		{
  		MoveObject(lsgate,1950.097,-2189.796,15.320, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "YOU ARE NOT PD.");
	}
	if (strcmp(cmdtext, "/lsc", true)==0)
	{
		if(PlayerInfo[playerid][pTeam] == 1 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pTeam] == 3)
		{
 			MoveObject(lsgate,1961.690,-2189.593,15.320, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSE.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "YOU ARE NOT PD.");
	}
help to fix this please
Reply
#2

The part itself is okay (in my opinion), but i guess the
pawn Код:
PlayerInfo[playerid][pTeam]
causes the problems. Be sure to declare everything correctly.
Reply
#3

hmmmm so what to write on that place?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)