08.11.2014, 10:26
Well, I've got this problem, I do not know how to fix it :c I'll rep up the guy that manages to help me
The dg is never used, that's okay I'm not planning on using it just yet.
And this is the script:
PHP код:
C:\Users\MARKO\Desktop\Learning\gamemodes\ARP.pwn(491) : error 008: must be a constant expression; assumed zero
C:\Users\MARKO\Desktop\Learning\gamemodes\ARP.pwn(493) : warning 209: function "cmd_opendgates" should return a value
C:\Users\MARKO\Desktop\Learning\gamemodes\ARP.pwn(494) : error 010: invalid function or declaration
C:\Users\MARKO\Desktop\Learning\gamemodes\ARP.pwn(39) : warning 204: symbol is assigned a value that is never used: "dg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
And this is the script:
PHP код:
CMD:opendgates(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,5,2517.15381, 2345.71021, 11.21650)) return SendClientMessage(playerid, COLOR_RED, "You're not near the crack den.");
else if
{
-> error line MoveObject(dm,2517.15381, 2345.71021, 5,1.5,5);
SendClientMessage(playerid, COLOR_AQUA, "{FFFFFF}[DRUG DEALER]{FFFF66}Get in,scrub.");
-> error line }
-> error line return 1;
}