Fehler:
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(47) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(53) : error 021: symbol already defined: "SetTimer"
C:\Dokumente und Einstellungen\Danii\Desktop\gm.pwn(68) : error 004: function "PlayerToPoint" is not implemented
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Code:
forward SetPlayerTeamFromClass(playerid, classid);
forward Winner();
forward advert1();
forward advert2();
forward advert3();
forward checkparea(playerid);
forward closegate();
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
new zu1;
new auf1;
new zu2;
new auf2;
/*47*/zu1 = CreateObject{1553, -2278.9653, -1722.3469, 472.4153, 0.0000, 353.1245, 11.2500, 500.0}; //zu1
auf1 = CreateObject{1553, -2278.4272, -1720.2104, 472.9364, 0.0000, 0.0000, 292.5000, 500.0};//auf1
zu2 = CreateObject{1553, -2281.9626, -1722.6721, 472.0623, 0.0000, 353.1245, 0.0000, 500.0};//zu2
auf2 = Createobject{1553, -2283.9763, -1721.2233, 472.2393, 350.5462, 353.1245, 101.2500, 500.0};//auf2
/*53*/SetTimer("checkparea", 1, 1);
/*
{1553, -2278.9653, -1722.3469, 472.4153, 0.0000, 353.1245, 11.2500, 500.0}, //zu1
{1553, -2278.4272, -1720.2104, 472.9364, 0.0000, 0.0000, 292.5000, 500.0},//auf1
{1553, -2281.9626, -1722.6721, 472.0623, 0.0000, 353.1245, 0.0000, 500.0},zu2
{1553, -2283.9763, -1721.2233, 472.2393, 350.5462, 353.1245, 101.2500, 500.0},auf2
*/
main()
{
}
public checkparea(playerid)
{
/*68*/ if(PlayerToPoint(15.0, playerid, -2278.9653, -1722.3469, 472.4153)) // 10.0 ist der Radius
{
MoveObject(auf1, -2278.4272, -1720.2104, 472.9364, 2.5); // 2.5 ist glaub ich die Geschwindigkeit
SetTimer("closegate", 5000, 0);
}
return 1;
}
public closegate()
{
MoveObject(zu1, -2278.9653, -1722.3469, 472.4153, 2.5);
return 1;
}
Wie weiter? /*HILFE ;)*/