Bom eu adcionei objetos ao meu GM , ae eu resolvi criar um portгo bбsico para abrir e fechar entгo quando eu vou compilar da isso :
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(45) : error 017: undefined symbol "portaopm"
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(62) : warning 217: loose indentation
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(260) : warning 235: public function lacks forward declaration (symbol "ChecarPortao")
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(266) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(270) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(272) : error 054: unmatched closing brace ("}")
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(273) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(274) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(276) : error 054: unmatched closing brace ("}")
C:\Program Files\Rockstar Games\Servidor samp\gamemodes\new.pwn(277) : warning 203: symbol is never used: "P1"
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <a_objects>
#if defined FILTERSCRIPT
#define Policia Militar 0
new Profissao[MAX_PLAYERS];
new gTeam [MAX_PLAYERS];
new portaopm;
forward ChecarPortao();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by xande");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetTimer("ChecarPortao", 1000, true);
portaopm = CreateObject(976, 2293.8779296875, 2495.0310058594, 2.2734375, 0, 0, 90);
CreateObject(976, 2293.8779296875, 2495.0310058594, 2.2734375, 0, 0, 90);
CreateObject(984, 2293.8830566406, 2498.9577636719, 6.1010222434998, 0, 0, 0);
CreateObject(967, 2295.2690429688, 2493.7458496094, 2.2734375, 0, 0, 358);
CreateObject(3049, 2251.0710449219, 2496.9858398438, 4.5155715942383, 0, 0, 92);
CreateObject(3049, 2251.056640625, 2501.3820800781, 4.5155715942383, 0, 0, 90);
CreateObject(3049, 2251.0563964844, 2502.7204589844, 4.5155715942383, 0, 0, 90);
CreateObject(3049, 2251.1044921875, 2502.7658691406, 7.7426428794861, 0, 0, 90);
CreateObject(3049, 2251.0441894531, 2498.2746582031, 7.7811341285706, 0, 0, 92);
CreateObject(3049, 2251.1022949219, 2496.052734375, 7.6545009613037, 0, 0, 92);
CreateObject(3051, 2248.7475585938, 2486.6042480469, 11.353008270264, 0, 0, 46);
CreateObject(3051, 2248.7475585938, 2485.7663574219, 11.353008270264, 0, 0, 48);
CreateObject(8168, 2293.3361816406, 2445.8771972656, 47.925498962402, 0, 0, 286);
CreateObject(8168, 2295.826171875, 2459.916015625, 39.635475158691, 0, 0, 196);
// Don't use these lines if it's a filterscript
SetGameModeText("******* Games ~ ******* SA-MP RPG V 1.0 [0.3c] ~ ******* Games!");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public ChecarPortao()
{
return 1;
}
new P1;
for(new playerid;playerid<MAX_PLAYERS;playerid);
{
if(gTeam[playerid] == 0)
}
if(P1)MoveObject(portaopm,2294.0444335938,2502.7802734375,2.2734375,2.5);
else MoveObject(portaopm,2293.8779296875, 2495.0310058594, 2.2734375,2.5);
}