19.02.2013, 12:52
Quote:
@Roko_foko ye, i dont see any mistakes too. i dont know why that error occurs. can you show me an example you mean?
|
pawn Код:
//...
if(!IsPlayerConnected(ID))
{
format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot rob them",ID);
SendClientMessage(playerid,COLOR_RED_ERROR,string);
return 1;
}
new Float:A[3];
GetPlayerPos(ID,A[0],A[1],A[2]);
if(IsPlayerInRangeOfPoint(playerid,5.0,A[0],A[1],A[2]))
{
format(string,sizeof(string),"%s(%d) is too far away. You cannot reach him to rob him.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_RED_ERROR,string);
return 1;
}