hä jetz sins schon 3. xDD
ich geh dir bestimmt voll auf die ei**
C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(30) : error 004: function "PlayerToPoint" is not implemented
C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(44) : error 004: function "PlayerToPoint" is not implemented
C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(51) : warning 209: function "OnPlayerCommandText" should return a value
C:\Dokumente und Einstellungen\nik0\Desktop\GTASTATE\tests\gate2.pwn(52) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
#include <a_samp>
#pragma tabsize 0
#define COLOR_YELLOW 0xFFFF00AA
#define FILTERSCRIPT
#if defined FILTERSCRIPT
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
new tor1;
public OnFilterScriptInit()
{
tor1 = CreateObject(971, 2299.667480, -1649.000854, 14.593271, 0.0000, 0.0000, 0.0000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open", true)==0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
{
return 1;
}
MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
return 1;
}
if (strcmp(cmdtext, "/close", true)==0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "dontkillme", true)) return SendClientMessage(playerid, 0x33AA33AA,"Du hast hier keinen Zutritt");
if(!PlayerToPoint(15.0, playerid, 1588.89,-1638.3,15.29))
{
return 1;
}
MoveObject(tor1,2304.025391, -1649.000854, 14.593271, 3.5);
return 1;
}
}
return 0;
}