SA-MP Forums Archive
Helpppppppppppppp Meeeee! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Helpppppppppppppp Meeeee! (/showthread.php?tid=534129)



Helpppppppppppppp Meeeee! - FloxX - 28.08.2014

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


Re: Helpppppppppppppp Meeeee! - FloxX - 28.08.2014

No ones help ?


Re: Helpppppppppppppp Meeeee! - AiRaLoKa - 28.08.2014

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



Re: Helpppppppppppppp Meeeee! - Dotayuri - 28.08.2014

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



Re: Helpppppppppppppp Meeeee! - jihadmeneer - 28.08.2014

Float: X, Float: Y, Float: Z

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