#include <a_samp> new Gate; public OnGameModeInit() { Gate = CreateObject(968,2467.5000000,-1663.1999512,13.1000004,0.0000000,270.0000000,271.9999695); } public OnPlayerCommandText(playerid, cmdtext[]) } if(strcmp(cmd, "/opengate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1); SendClientMessage(playerid, COLOR_YELLOW, "The gate is open."); return 1; } if(strcmp(cmd, "/closegate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004, 1); SendClientMessage(playerid, COLOR_YELLOW, "The gate is closed.");
#include <a_samp> new Gate; public OnGameModeInit() { Gate = CreateObject(968,2467.5000000,-1663.1999512,13.1000004,0.0000000,270.0000000,271.9999695); } public OnPlayerCommandText(playerid, cmdtext[]) } if(strcmp(cmd, "/opengate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1); } SendClientMessage(playerid, COLOR_YELLOW, "The gate is open."); return 1; } if(strcmp(cmd, "/closegate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004, 1); } SendClientMessage(playerid, COLOR_YELLOW, "The gate is closed.");
if(strcmp(cmd, "/opengate", true) == 0)
{
MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1);
SendClientMessage(playerid, COLOR_YELLOW, "The gate is open.");
return 1;
}
if(strcmp(cmd, "/opengate", true) == 0)
{
MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,1);
SendClientMessage(playerid, COLOR_YELLOW, "The gate is open.");
return 1;
}
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(17) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(17 -- 18) : warning 215: expression has no effect
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(18) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(22) : error 021: symbol already defined: "SendClientMessage"
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(23) : error 010: invalid function or declaration
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(26) : error 010: invalid function or declaration
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(30) : error 021: symbol already defined: "SendClientMessage"
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(31) : error 010: invalid function or declaration
C:\Documents and Settings\Major\My Documents\Downloads\server test\gamemodes\rivershell.pwn(14) : warning 204: symbol is assigned a value that is never used: "Gate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
#include <a_samp> new gate1; |
public OnFilterScriptInit() { gate1 = CreateObject(971,-1184.54418945,-996.06542969,130.38134766,0.0,0.0,270.0); return 1; |
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/gateopen",true)==0) //gate1open { MoveObject(gate1, -1184.2901611328, -996.14276123047, 123.37306976318 , 5.00); return 1; } if(strcmp(cmdtext,"/gateclose",true)==0) //gate1close return 1; } return 0; } |