What did I do wrong?
#1

Hey I scripted gps script but I can't see what I did wrong

pawn Код:
if(strcmp(cmd, "/isls", true) == 0)
   {
   SetPlayerCheckpoint(playerid, 1184.7054,-3702.7004,5.5726, 10.00);
}
if(strcmp(cmd, "/isle", true) == 0)
   {
   SetPlayerCheckpoint(playerid, 3708.5895,-1507.7553,8.3544, 10.00);

}
if(strcmp(cmd, "/islw", true) == 0)
   {
   SetPlayerCheckpoint(playerid, -3524.7919,1341.0784,4.1947, 10.00);

}
if(strcmp(cmd, "/isln", true) == 0)
   {
   SetPlayerCheckpoint(playerid, 382.2226,3591.6541,5.1390, 10.00);

}
if(strcmp(cmd, "/carls", true) == 0)
   {
   SetPlayerCheckpoint(playerid, 2719.5486,-2644.2388,23.6925, 10.00);

}
if (IsPlayerInCheckpoint(playerid))
{
  DisablePlayerCheckpoint(playerid);
}
when i go inside the check point it does not remove it stays...
Reply
#2

try with doing it if (IsPlayerClose(playerid,10)==0) or CloseToPoint
Reply
#3

WOw this is a nooby question but read Wiki next time

You want it to get deleted?
pawn Код:
public OnPlayerEnterCheckpoint(...)
{
   if(IsPlayerInRangeOfPoint(playerid,10.0,1184.7054,-3702.7004,5.5726))
       {
        GameTextForPlayer(playerid,"Welcome to LS",5000,5);
        DisablePlayerCheckpoint(playerid);
       }
   if(IsPlayerInRangeOfPoint(playerid,10.0,3708.5895,-1507.7553,8.3544))
       {
        GameTextForPlayer(playerid,"Welcome to LE",5000,5);
        DisablePlayerCheckpoint(playerid);
       }//Just repeat this
return 1;
}
or if you want only deletion:

pawn Код:
public OnPlayerEnterCheckpoint(...)
{
   DisablePlayerCheckpoint(playerid);
return 1;
}
Reply
#4

Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
WOw this is a nooby question but read Wiki next time

You want it to get deleted?
pawn Код:
public OnPlayerEnterCheckpoint(...)
{
   if(IsPlayerInRangeOfPoint(playerid,10.0,1184.7054,-3702.7004,5.5726))
       {
        GameTextForPlayer(playerid,"Welcome to LS",5000,5);
        DisablePlayerCheckpoint(playerid);
       }
   if(IsPlayerInRangeOfPoint(playerid,10.0,3708.5895,-1507.7553,8.3544))
       {
        GameTextForPlayer(playerid,"Welcome to LE",5000,5);
        DisablePlayerCheckpoint(playerid);
       }//Just repeat this
return 1;
}
or if you want only deletion:

pawn Код:
public OnPlayerEnterCheckpoint(...)
{
   DisablePlayerCheckpoint(playerid);
return 1;
}
What should I add in the ... dots?
pawn Код:
public OnPlayerEnterCheckpoint(...)
{
   DisablePlayerCheckpoint(playerid);
return 1;
}
Reply
#5

public OnPlayerEnterCheckpoint(playerid)

Sure its that, although I never used that callback.
Reply
#6

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
public OnPlayerEnterCheckpoint(playerid)

Sure its that, although I never used that callback.
Код:
C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(9891) : error 029: invalid expression, assumed zero
C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(9891) : error 004: function "Streamer_OnPlayerEnterCP" is not implemented
0_0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)