SA-MP Forums Archive
Trouble - 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: Trouble (/showthread.php?tid=84220)



Trouble - 6tynine - 29.06.2009

I got dragsta's CPS it worked up untill i added another CP this is what it looks like. When I added the 2nd CP they all gone.

pawn Код:
public OnGameModeInit()
{
    StartSystem();
    DisableInteriorEnterExits();

   
    ammunation1 = CreateCheckpoint(0, Float:2625.8442,Float:208.2459,Float:4.8125, Float:1.0, Float:40);
    ammunation2 = CreateCheckpoint(0, Float:2159.4297,Float:941.7069,Float:10.8203, Float:1.0, Float:40);
    return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
    ClearVars(playerid);
    SyncCheckpoints(playerid);
    ammunation1 = CreateCheckpoint(playerid, 2625.8442,208.2459,4.8125, 1.0, 40);
    ammunation2 = CreateCheckpoint(playerid, 2671.4253,257.9249,4.6328, 1.0, 40);
    return 1;
}
pawn Код:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) //stream id = CP id :D
{
  if(streamid == ammunation1)
  {
    GameTextForPlayer(playerid,"Ammunation CP!",3000,5);
  }

  if(streamid == ammunation2)
  {
    GameTextForPlayer(playerid,"Ammunation CP 2!",3000,5);
  }

  return 1;
}
Any idea's ?


Re: Trouble - Ignas1337 - 29.06.2009

try creating the script he got yourself and you will understand what you did wrong. Analyse the code, then please try to ask for help. check mIRC, too.


Re: Trouble - 6tynine - 29.06.2009

I tried and can't see nothing :\


Re: Trouble - 6tynine - 29.06.2009

I would ask on irc but some reason im banned from the scripting channel on irc.gtanet