SA-MP Forums Archive
I need help with error creating checkpoint >.< - 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: I need help with error creating checkpoint >.< (/showthread.php?tid=156025)



I need help with error creating checkpoint >.< - the_zande - 20.06.2010

public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint,playerid,1917.2327,1618. 8695,25.277) <---- THIS ONE GET ERROR
{
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277;
}

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: Floatize.

SetPlayerCheckpoint(playerid,x,y,z,size);

You got:
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277;
ID X y Z size?

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) <---- THIS ONE GET ERROR
{
SetPlayerCheckpoint(playerid,1916.2327,1617.8695,2 4.277;
}

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 >.< - 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)


Re: I need help with error creating checkpoint >.< - the_zande - 20.06.2010

OMG IT WORKS!!! thx man lot!! (=