29.03.2010, 21:45
Here's my code
C:\Users\Anthony\Desktop\Hospital.pwn(195) : error 004: function "PlayerToPoint" is not implemented
I get this error, but I do have:
#include <a_samp>
#include <float>
#define YELLOW 0xFBFB00FF
forward PlayerToPoint(Float:radi, playerid, Float
, Float:y, Float:z);
--
How to fix it?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/hopital", cmdtext, true, 10) == 0) { if (PlayerToPoint(5.0, playerid,-551.8567,2593.9453,53.9348)) { new name[MAX_PLAYER_NAME],string[128]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"*** %s a entrйe l'Hopital (/hopital)",name); SendClientMessage(playerid,YELLOW,string); SetPlayerPos(playerid,1935.4089,-2110.2100,-19.3109); SetPlayerFacingAngle(playerid,322.2638); } return 1; } return 0; }
I get this error, but I do have:
#include <a_samp>
#include <float>
#define YELLOW 0xFBFB00FF
forward PlayerToPoint(Float:radi, playerid, Float

--
How to fix it?