// LSPD // SASD if(!IsPlayerInRangeOfPoint(playerid, 10, 1526, -1676, 5.89) || if(IsPlayerInRangeOfPoint(playerid, 283, 613.8015, -589.0556,17.2330,268.7866 || return SendClientMessage(playerid, -1, "You are not at the arrest point.");
C:\Users\Brandon\Desktop\Generation X Gaming\gamemodes\GXGNEW.pwn(1942) : warning 202: number of arguments does not match definition C:\Users\Brandon\Desktop\Generation X Gaming\gamemodes\GXGNEW.pwn(5439) : error 029: invalid expression, assumed zero C:\Users\Brandon\Desktop\Generation X Gaming\gamemodes\GXGNEW.pwn(5439) : error 029: invalid expression, assumed zero C:\Users\Brandon\Desktop\Generation X Gaming\gamemodes\GXGNEW.pwn(7803) : warning 213: tag mismatch C:\Users\Brandon\Desktop\Generation X Gaming\gamemodes\GXGNEW.pwn(7803) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664
if(!IsPlayerInRangeOfPoint(playerid, 10, 1526, -1676, 5.89) || !IsPlayerInRangeOfPoint(playerid, 10, 613.8015, -589.0556,17.2330,268.7866))
return SendClientMessage(playerid, -1, "You are not at the arrest point.");
if(!IsPlayerInRangeOfPoint(playerid, 10, 1526, -1676, 5.89) || !IsPlayerInRangeOfPoint(playerid, 10, 613.8015, -589.0556,17.2330)) return SendClientMessage(playerid, -1, "You are not at the arrest point.");
if( something || if( something2 ) )
// Not correct
instead of the range. I suppose it's if he's not in that range the second as well.
if(!IsPlayerInRangeOfPoint(playerid, 10, 1526, -1676, 5.89) || !IsPlayerInRangeOfPoint(playerid, 283, 613.8015, -589.0556,17.2330,268.7866 return SendClientMessage(playerid, -1, "You are not at the arrest point.");
|
The line should be:
pawn Код:
|
if( something || something2 || return Error();
// ERRORS
|
Yes you can have in one line with || Inside a statement. Not outside and return a value after that.
This is what you did. pawn Код:
|
|
You cannot put || then return a client message.
You must close the if( ..code..) then return a message. Hope you see the idea of this ![]() |