if(!strcmp(cmdtext,"/desrainis",true))
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(IsPlayerConnected(i))
{
if(GetVehicleModel(GetPlayerVehicleID(i)) == 588)//hotdog
{
new Float:px, Float:py, Float:pz;
GetVehiclePos(i, px, py, pz);
if(PlayerToPoint(4, i, px, py, pz))// 177 line
{
SetPlayerHealth(i, 100.0);
GivePlayerMoney(i, -15);
SendClientMessage(i,0xFFFF00AA,"***Astrus desrainis...");
}
else
{
SendClientMessage(i,0xFFFF00AA,"***Jus per toli nuo masinos.");
}
}
}
}
return 1;
}
return 0;
}
(177) : error 017: undefined symbol "PlayerToPoint"
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
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);
if(((tempposx < radi)
&& (tempposx > - radi))
&& ((tempposy < radi)
&& (tempposy > - radi))
&& ((tempposz < radi)
&& (tempposz > - radi)))
{
return 1;
}
}
return 0;
}
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
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);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
|
Originally Posted by Don Correlli
You don't have PlayerToPoint function in your script.
pawn Код:
|
|
Originally Posted by shady91
forward PlayerToPointStripped(Float:radi, playerid, Float
, Float:y, Float:z, Float:curx, Float:cury, Float:curz); |
|
Originally Posted by Don Correlli
He just asked for PlayerToPoint function which i gave him. After that you posted the same function and added useless forward for a function you don't even know if it's in his script.
|
if you can check time s of the post
What I do wrong?