#else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif new gate; public OnGameModeInit() { //Moving Gate gate = CreateObject(985,1545.1000000,-1627.6000000,14.1000000,0.0000000,0.0000000,90.0000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/openthegate",true)== 0) { MoveObject(gate,1545.1000000,-1620.1000000,14.1000000,3; return 1; } if(strcmp(cmdtext,"/closethegate",true)== 0) { MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3; return 1; } }
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(302) : error 001: expected token: ",", but found ";"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(307) : error 001: expected token: ",", but found ";"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(310) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3; //See below code MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/openthegate",true)== 0)
{
MoveObject(gate,1545.1000000,-1620.1000000,14.1000000,3);
return 1;
}
if(strcmp(cmdtext,"/closethegate",true)== 0)
{
MoveObject(gate,1545.1000000,-1627.6000000,14.1000000,3);
return 1;
}
return 0;
}
1545.1000000
1545.1
can you fix this two [CODE]C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(274) : error 017: undefined symbol "TEAM_ARMY"
C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(28 : error 017: undefined symbol "TEAM_ARMY" C:\Users\Борисов\Desktop\The Walking Dead\gamemodes\TWD1.0.pwn(299) : error 017: undefined symbol "COLOR_GREY" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. [CODE] |
#define COLOR_GREY 0xABABABFF
#define TEAM_ARMY 1337