killdahobo99
Unregistered
I want to add a checkpoint to this location:
Код:
2031.6348,-1413.5884,16.9922
I have no idea how i'm suppose to do it.
Can someone give me the code for it? Like litrally every peice of the code like "#define" w/e Please help
I want the marker to teleport the person to this hospital this user created
http://forum.sa-mp.com/index.php?topic=94087.0
killdahobo99
Unregistered
Quote:
Originally Posted by cj101
Код:
SetPlayerCheckPoint(playerid,2031.6348,-1413.5884,16.9922,2);
add that under OnPlayerSpawn
|
Didn't work, this is what i put.....
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckPoint(playerid,2031.6348,-1413.5884,16.9922,2);
GivePlayerMoney(playerid, PocketMoney);
SetPlayerInterior(playerid,0);
SetPlayerRandomSpawn(playerid);
TogglePlayerClock(playerid,1);
return 1;
}
This is the error i get " (387) : error 017: undefined symbol "SetPlayerCheckPoint" "
And when i go to the top and type #define SetPlayerCheckPoint
I get this error
(38
: warning 215: expression has no effect
But without this new code my script is perfect, any ideas? please help
killdahobo99
Unregistered
Quote:
Originally Posted by Backwardsman97
SetPlayerCheckpoint
|
Still didnt work, Heres the error: (240) : warning 225: unreachable code
Heres the code:
Код:
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, PocketMoney);
SetPlayerInterior(playerid,0);
SetPlayerRandomSpawn(playerid);
TogglePlayerClock(playerid,1);
return 1;
SetPlayerCheckpoint(playerid,2031.6348,-1413.5884,16.9922,2);
return 1;
}
Reamber, That is the only thing i put into the script, i didnt define or new anything thats it.
Please can someone just make a tutorial or something?
killdahobo99
Unregistered
Quote:
Originally Posted by Swistack92
Remove
after
Код:
TogglePlayerClock(playerid,1);
|
I tryed....Nothing is working! Can someone just please put these cords
Код:
"2031.6348,-1413.5884,16.9922"
Into a checkpoint? i really need this done. I also want the Red marker to teleport the player to here:
Код:
1935.4089,-2110.2100,-19.3109
Please can someone just make a red marker thing for those cords and put it in this script:
http://pastebin.com/m1bd448fc
Thank you.