I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint,playerid,1917.2327,1618. 8695,25.277
![Cool](images/smilies/cool.gif)
) <---- THIS ONE GET ERROR
{
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277
![Cool](images/smilies/cool.gif)
;
}
okay this is my creating code and I get that error:
C:\Documents and Settings\asennus\Tyцpцytд\SA-MP Server\gamemodes\OGS.pwn(2310) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\asennus\Tyцpцytд\SA-MP Server\gamemodes\OGS.pwn(2310) : error 029: invalid expression, assumed zero
pls I need help
Re: I need help with error creating checkpoint >.< -
Hiddos - 20.06.2010
Hmm. Stupid question, but which one is line 2310?
Also, you're missing a float at the end: Float
![confused](images/smilies/confused.gif)
ize.
SetPlayerCheckpoint(playerid,x,y,z,size);
You got:
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277
![Cool](images/smilies/cool.gif)
;
ID X y Z size
![Huh?](images/smilies/confused.gif)
?
Try something like:
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.2778,15);
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
lol same errors......thx anyways
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
Come on pls someoneee help xd
Re: I need help with error creating checkpoint >.< -
Hiddos - 20.06.2010
I asked for the error line :P
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
Quote:
Originally Posted by the_zande
public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,1917.2327,1618. 8695,25.277 ![Cool](images/smilies/cool.gif) ) <---- THIS ONE GET ERROR
{
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277 ![Cool](images/smilies/cool.gif) ;
}
okay this is my creating code and I get that error:
C:\Documents and Settings\asennus\Tyцpцytд\SA-MP Server\gamemodes\OGS.pwn(2310) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\asennus\Tyцpцytд\SA-MP Server\gamemodes\OGS.pwn(2310) : error 029: invalid expression, assumed zero
pls I need help ![Cry](images/smilies/cry.gif)
|
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
That rangeofpoint line...
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
lol pls......helppp me -.-
Re: I need help with error creating checkpoint >.< -
Hiddos - 20.06.2010
if(IsPlayerInRangeOfPoint(playerid,15,1917.2327,16 18.8695,25.277
![Cool](images/smilies/cool.gif)
)
Re: I need help with error creating checkpoint >.< -
the_zande - 20.06.2010
OMG IT WORKS!!! thx man lot!! (=