12.04.2009, 07:15
I created FS, and i compile then :
FS code:
Код:
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.
Код:
#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 !"); } } }