28.08.2014, 08:12
Why o.O Please Help! me for this Code
CMDickammo(playerid,params[])
{
for(new i= 0; i < sizeof(pickup_Box); i++)
{
new Float: x,Float: y,Float: z
GetObjectPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { "Anda dekat dengan objek Pick_Box!" }
}
return 1;
}
ERROR
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31072) : error 001: expected token: ";", but found "-identifier-"
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31073) : warning 215: expression has no effect
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31073) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Imagee ?
Down!
Line ?
31072 : GetObjectPos(i, x, y, z);
31073: if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { "You near pickbox!" }
Sorry for my bad speak english , thanks
CMDickammo(playerid,params[])
{
for(new i= 0; i < sizeof(pickup_Box); i++)
{
new Float: x,Float: y,Float: z
GetObjectPos(i, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { "Anda dekat dengan objek Pick_Box!" }
}
return 1;
}
ERROR
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31072) : error 001: expected token: ";", but found "-identifier-"
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31073) : warning 215: expression has no effect
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(31073) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Imagee ?
Down!
Line ?
31072 : GetObjectPos(i, x, y, z);
31073: if(IsPlayerInRangeOfPoint(playerid, x, y ,z, 10.0)) { "You near pickbox!" }
Sorry for my bad speak english , thanks