What The??? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What The??? (
/showthread.php?tid=166442)
What The??? -
[NTX]MikeQ - 08.08.2010
I have a problem here
Code:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923,))//player range place
{
if(IsCmdLvl(playerid,5))
{
MoveObject(SEX,788.29461700,-2594.71411100,10.65676100,30.0);//were it will goto
MoveObject(SEX2,776.80096400,-2591.98999000,10.71056400,30.0);//were it will goto
SendClientMessage(playerid,0x000fffaa,"The gates will close in 5 seconds!");
SetTimer("ClosesIn",5000,0);
}
else CreateExplosion( 783.2106,-2592.9150,34.5923, 2, Float:5);//place of playerrange
}
return 1;
Errors:
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(216) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(218) : error 017: undefined symbol "IsCmdLvl"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(227) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(229) : error 030: compound statement not closed at the end of file (started at line 216)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Lines:
Line 229 = I have no line 229 but error shows on it my last blank line is 228
Line 216 =
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923,))//player range place
Ignore line 218 ill get xadmin now
Re: What The??? -
Claude - 08.08.2010
You forgot a bracket
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923))//player range place
{
if(IsCmdLvl(playerid,5)) // IsCmdLevel is not defined to anything at all
{
MoveObject(SEX,788.29461700,-2594.71411100,10.65676100,30.0);//were it will goto
MoveObject(SEX2,776.80096400,-2591.98999000,10.71056400,30.0);//were it will goto
SendClientMessage(playerid,0x000fffaa,"The gates will close in 5 seconds!");
SetTimer("ClosesIn",5000,0);
}
else CreateExplosion( 783.2106,-2592.9150,34.5923, 2, Float:5);//place of playerrange
}
return 1;
}
Re: What The??? -
[NTX]MikeQ - 08.08.2010
ty so much