strcmp 4 errors
#1

Код:
	if(strcmp(cmd, "/lsv", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if (PlayerInfo[playerid][pMember] == 2 || [playerid][pLeader] == 2)
			{
				GivePlayerWeapon(playerid, 41, 999);
				GivePlayerWeapon(playerid, 29, 999);
				GivePlayerWeapon(playerid, 25, 999);
				GivePlayerWeapon(playerid, 24, 999);
				GivePlayerWeapon(playerid, 4, 1);
				return 1;
			}
			else
			{
			SendClientMessage(playerid, COLOR_GRAD1, "  Sa pole gдngis: Los Santos Vagos !");
			}
		}
		return 1;
	}
Код:
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(8266) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(8266) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(8266) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(8266) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\sa-mp server\gamemodes\gf.pwn(8266) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Error a line:
Код:
			if (PlayerInfo[playerid][pMember] == 2 || [playerid][pLeader] == 2)
How do i make this can use Member and Leader?
Reply
#2

Код:
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
Reply
#3

How you say it's strcmp I don't understand though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)