29.04.2009, 17:05
Hi, i got some new problems with compiling my .pwn with new ifPlayer to point....
Here's what i got...
I get a lot of errors which are not related to what I have done Im making a new fs, and theres only some objects one pickup and 1 command , and i get all of these errors
What Can I dO ??
That's all I got in my script
Here's what i got...
pawn Код:
; error 004: function "PlayerToPoint" is not implemented
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerInfoChange" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerEnterVehicle" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerExitVehicle" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerStateChange" is not implemented
: warning 225: unreachable code
;error 029: invalid expression, assumed zero
; error 004: function "OnPlayerEnterCheckpoint" is not implemented
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerLeaveCheckpoint" is not implemented
; warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnRconCommand" is not implemented
: warning 225: unreachable code
; error 029: invalid expression, assumed zero
: error 004: function "OnObjectMoved" is not implemented
: warning 225: unreachable code
: error 029: invalid expression, assumed zero
: error 004: function "OnPlayerObjectMoved" is not implemented
: warning 225: unreachable code
: error 004: function "OnPlayerPickUpPickup" is not implemented
: error 017: undefined symbol "pickupid"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
What Can I dO ??
That's all I got in my script
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
// Colors
#define COLOR_BLUE 0x0042F6AA
#define COLOR_DRED 0xA50000AA
#pragma tabsize 0
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
new loco;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" [FS] MY new filterscript testing");
print("--------------------------------------\n");
// --= 656464646 =--
CreateObject(971,1622.453,-1020.772,24.193,0.0,0.0,-180.000);
CreateObject(971,1598.821,-1035.165,24.577,0.0,0.0,11.250);
CreateObject(971,1597.849,-1042.653,28.636,0.0,0.0,-90.000);
// - Pickups
loco = CreatePickup(1239, 1, 1633.2205,-1019.4009,23.8984);
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rokko", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(3.0,playerid,1633.2205,-1019.4009,23.8984))
{
SetPlayerPos(playerid, 1613.8705,-1034.0105,89.1115);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 30,1);
return 1;
}
return 0;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == loco)
{
GameTextForPlayer(playerid,"~w~Welcome to LOCO motherfucker ese ",5000,5);
SendClientMessage(playerid, COLOR_GREEN, "This is da LOCO ese' hood");
SetPlayerInterior(playerid, 0);
}
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
//