2 problems
#1

1st problem:

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, -1955.7682, 306.0241, 41.0471 && !IsPlayerInRangeOfPoint(playerid, -2051.8413,86.1440,28.3977) && !IsPlayerInRangeOfPoint(playerid, -2141.5591,-256.7738,40.7195))
    return SendClientMessage(playerid, red, "You are not at a robbery location.");
Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
error 001: expected token: ")", but found "return"
2nd problem:

pawn Код:
CPs[0] = CreateDynamicCP(-2141.4019,-256.8884,40.7195,-1,-1,-1,100.0); // Drugfactory rob CP
    CPs[1] = CreateDynamicCP(-1955.7079,306.0107,41.0471,-1,-1,-1,100.0); // WangCarsRobberyCPDoherty
    CPs[2] = CreateDynamicCP(-2051.8376,86.0918,28.3977,-1,-1,-1,100.0); // SanFierroFireDeptRobberyCP
Код:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
Reply
#2

1.problem i think like this..

Код:
if(!IsPlayerInRangeOfPoint(playerid, -1955.7682, 306.0241, 41.0471 && !IsPlayerInRangeOfPoint(playerid, 2051.8413,86.1440,28.3977) && !IsPlayerInRangeOfPoint(playerid, -2141.5591,-256.7738,40.7195)) return 1;
    return SendClientMessage(playerid, red, "You are not at a robbery location."); return 1;
   else return 0;
}
try it please.
Reply
#3

Nope,don't work.
Reply
#4

are yousing it as an forward??
Reply
#5

No,i don't need to forward IsPlayerInRangeOfPoint,there is something wrong in that.
Reply
#6

Sorry my bad
Reply
#7

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
1.problem i think like this..

Код:
if(!IsPlayerInRangeOfPoint(playerid, -1955.7682, 306.0241, 41.0471 && !IsPlayerInRangeOfPoint(playerid, 2051.8413,86.1440,28.3977) && !IsPlayerInRangeOfPoint(playerid, -2141.5591,-256.7738,40.7195)) return 1;
    return SendClientMessage(playerid, red, "You are not at a robbery location."); return 1;
   else return 0;
}
try it please.
I suggest you, if you don't know what are you posting, don't post it at all
1st:
pawn Код:
if( !IsPlayerInRangeOfPoint( playerid, 7.0, -1955.7682, 306.0241, 41.0471 ) && !IsPlayerInRangeOfPoint( playerid, 7.0, -2051.8413, 86.1440, 28.3977 ) && !IsPlayerInRangeOfPoint( playerid, 7.0, -2141.5591, -256.7738, 40.7195 ) )
    return SendClientMessage( playerid, red, "You are not at a robbery location." );
You forgot the range on the parameters.

2nd:
it's
pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
You forgot the size
Reply
#8

EDIT: Nevermind.
Reply
#9

I am curious to know if anyone read the wiki.
pawn Код:
IsPlayerInRangeOfPoint( playerid, Float:range, Float:x, Float:y, Float:z )
It's clearly the mistake of number of arguments does not match definition because it's missing the range. Has nothing to do with returning values.
Reply
#10

Quote:
Originally Posted by Dwane
Посмотреть сообщение
--
Thank you,always the best.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)