"PlayerInfo" (FS)
#1

I created FS, and i compile then :
Код:
C:\Documents and Settings\Owner\Desktop\SA-MP\EMMR\anarchy.pwn(20) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Owner\Desktop\SA-MP\EMMR\anarchy.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\SA-MP\EMMR\anarchy.pwn(20) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\SA-MP\EMMR\anarchy.pwn(20) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\SA-MP\EMMR\anarchy.pwn(20) : fatal error 107: too many error messages on one line

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


4 Errors.
FS code:
Код:
#include <a_samp>

new anarchy;

public OnGameModeInit()
{
	SetGameModeText("EMMR + FilterScript = Anarchy");
	//Createobject
	CreateObject(987, 964.838013, -1439.087036, 12.550484, 0.0000, 0.0000, 270.0000);
	CreateObject(987, 964.898743, -1443.841553, 12.564914, 0.0000, 0.0000, 270.0000);
	//Vдrav
	anarchy = CreateObject(980, 1041.197998, -1460.007813, 15.411911, 0.0000, 0.0000, 270.0000);
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext,"/opena", true) == 0)
  	{
		if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
		{
			MoveObject(anarchy, 1041.197998, -1460.007813, 9.786997,2.00);
     	return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "  Sa pole maffiast Anarchy !");
		}
	}
	if(strcmp(cmdtext,"/closea", true) == 0)
  	{
		if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
		{
			MoveObject(anarchy, 1041.197998, -1460.007813, 15.411911, 2.00);
     	return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "  Sa pole maffiast Anarchy !");
		}
	}
}
Reply


Messages In This Thread
"PlayerInfo" (FS) - by Typhome - 12.04.2009, 07:15
Re: "PlayerInfo" (FS) - by Think - 12.04.2009, 07:20
Re: "PlayerInfo" (FS) - by Typhome - 12.04.2009, 07:44
Re: "PlayerInfo" (FS) - by Think - 12.04.2009, 07:50
Re: "PlayerInfo" (FS) - by Typhome - 12.04.2009, 07:52
Re: "PlayerInfo" (FS) - by Typhome - 12.04.2009, 08:36
Re: "PlayerInfo" (FS) - by Typhome - 12.04.2009, 09:26
Re: "PlayerInfo" (FS) - by MenaceX^ - 12.04.2009, 09:33
Re: "PlayerInfo" (FS) - by Rks25 - 12.04.2009, 09:46
Re: "PlayerInfo" (FS) - by Typhome - 12.04.2009, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)