habe gates unten im sfpd gemappt...
aber ich bekomme diesen fehler wenn ich es ins script(natürlich schon richtig gescriptet mit moveobject usw) packe:
oben unter den includes:
new sfpdgates[4];
dann bei Ongamemodeinit:
sfpdgates[0] = CreateObject(7657, -1634.9768066406, 672.17578125, -4.5253448486328, 0, 0, 179.99450683594); //sfpdgates
sfpdgates[1] = CreateObject(7657, -1634.9912109375, 672.17578125, -1.2087049484253, 0, 0, 179.99450683594); //sfpdgates
sfpdgates[2] = CreateObject(7657, -1634.9768066406, 672.17578125, -4.5253448486328, 0, 0, 179.99450683594); //sfpdgates
sfpdgates[3] = CreateObject(7657, -1634.9912109375, 672.17578125, -1.2087049484253, 0, 0, 179.99450683594); //sfpdgates
hier bei onplayercommandtext:
//sfpd
if(strcmp(cmdtext,"/enter",true)==0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, -1605.6226,710.2883,13.8672))
{
SetPlayerPos(playerid,246.3097,111.3785,1003.2188);
SetPlayerInterior(playerid,10);
SendClientMessage(playerid, yellow,"Willkommen im SFPD");
return 1;
}
}
if(strcmp(cmdtext, "/sfpdöffnen", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10, -1634.9768066406, 672.17578125, -4.5253448486328))
{
SendClientMessage(playerid, yellow,"Gate zu den Panzern geöffnet!");
MoveObject(sfpdgates[0],-1634.9768066406, 672.17578125, -4.5253448486328, 2);
MoveObject(sfpdgates[1],-1634.9912109375, 672.17578125, -1.2087049484253, 2);
SetTimer("FsBarrZuruck", 10000, false);
return true;
}
}
return 0;
}
forward sfpdgatesZuruck();
public fspdgatesZuruck()
{
MoveObject(sfpdgates[0],-1634.9768066406, 672.17578125, -4.5253448486328, 2);
MoveObject(sfpdgates[1],-1634.9912109375, 672.17578125, -1.2087049484253, 2);
return true;
}
und hier der fehler:
C:\DOKUME~1\Erik\Desktop\F4LREA~1\GAMEMO~1\F4L.pwn(271) : warning 235: public function lacks forward declaration (symbol "fspdgatesZuruck")
was mach ich falsch?