30.03.2016, 22:05
Код:
#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; } }
PHP код:
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.