Helpppppppppppppp Meeeee!
#1

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
Reply
#2

No ones help ?
Reply
#3

you forgot a ";" behind
pawn Код:
new Float: x,Float: y,Float: z
Reply
#4

Syntax error:
PHP код:
new Floatx,Floaty,Floatz
Reply
#5

Float: X, Float: Y, Float: Z

Not that hard, check tge wiki before opening new threads.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)