Man es klappt aufeinmal doch nicht! -.-
#pragma tabsize 0
forward CloseGates();
new ArmyGate1;
public OnFilterScriptInit()
{
ArmyGate1 = CreateObject(971, -1530.385254, 482.618286, 8.732449, 0.0000, 0.0000, 180.0000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public CloseGates()
{
MoveObject(ArmyGate1,-1530.385254, 482.618286, 8.732449, 2.5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/army1", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
MoveObject(ArmyGate1,-1539.068726, 482.643280, 8.732449, 180);
SendClientMessage(playerid, COLOR_YELLOW,"Be welcome to the U.S. Army Base! The Gate will close in 8 seconds");
SetTimer("CloseGates",8000,0);
}
return 1;
}
return 0;
}
Zitat: error 021: symbol already defined: "OnPlayerCommandText"
Was mach ich nur immer falsch?