hogyan lehet használni a PlayerToPointot?vagyis
CMD:duty(playerid)
{
PlayerToPoint(15.0,playerid,1659.5399,221.7910,-82.2500))return SendClientMessage(playerid,CSAPAT_RENDOR_COLOR,\"Nem Vagy a Megfelelõ Helyen!\");
if(gTeam[playerid] == CSAPAT_RENDOR)return SendClientMessage(playerid,-1,\"Nem Vagy Rendõr\");
if(duty[playerid]==1)SendClientMessage(playerid,-1,\"Te már szolgálatba vagy\");
duty[playerid]=1;
SendClientMessage(playerid,-1,\"Szolgálatba Léptél!\");
SetPlayerColor(playerid,CSAPAT_RENDOR_COLOR);
GivePlayerWeapon(playerid,3,1);
GivePlayerWeapon(playerid,17,5);
GivePlayerWeapon(playerid,24,50);
GivePlayerWeapon(playerid,25,20);
GivePlayerWeapon(playerid,31,200);
GivePlayerWeapon(playerid,41,1000);
GivePlayerWeapon(playerid,43,50);
GivePlayerWeapon(playerid,46,1);
return 1;
}
ez a /duty parancsom,itt 4 errort ír:
C:\\Users\\Dawee\\Desktop\\CUCC\\samp03s\\gamemodes\\rivershell.pwn(285) : error 004: function \"PlayerToPoint\" is not implemented
C:\\Users\\Dawee\\Desktop\\CUCC\\samp03s\\gamemodes\\rivershell.pwn(285) : error 029: invalid expression, assumed zero
C:\\Users\\Dawee\\Desktop\\CUCC\\samp03s\\gamemodes\\rivershell.pwn(285) : warning 215: expression has no effect
C:\\Users\\Dawee\\Desktop\\CUCC\\samp03s\\gamemodes\\rivershell.pwn(285) : error 001: expected token: \";\", but found \"return\"
C:\\Users\\Dawee\\Desktop\\CUCC\\samp03s\\gamemodes\\rivershell.pwn(285) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
beagyázás :
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);