26.11.2009, 14:56
Hi, the script says always, that i am not at the position, why?
pawn Код:
if(strcmp(cmd, "/rob", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new r = 0; r < sizeof(RobInfo); r++)
{
if(IsPlayerInRangeOfPoint(playerid, RobInfo[r][rRaduis], RobInfo[r][rPlaceX], RobInfo[r][rPlaceY], RobInfo[r][rPlaceZ]))
{
//code
}
else
{
format(string, sizeof(string), "Du kannst hier nichts ausrauben.");
format(string2, sizeof(string2), "You are not at a rob place.");
LanguageGameTextForPlayer(playerid, string, string2,5000,3);
return 1;
}
}
}
return 1;
}