I need help with error creating checkpoint >.<
#1

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

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);
Reply
#3

lol same errors......thx anyways
Reply
#4

Come on pls someoneee help xd
Reply
#5

I asked for the error line :P
Reply
#6

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

That rangeofpoint line...
Reply
#8

lol pls......helppp me -.-
Reply
#9

if(IsPlayerInRangeOfPoint(playerid,15,1917.2327,16 18.8695,25.277)
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)