Trouble
#1

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

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

I tried and can't see nothing :\
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)