Crate bug
#1

Hello there, I've a Drugg smuggling system in my script which lets you smuggle some drugs to drug house and crack lab.

Code:
CMD:kasaal(playerid, params[])
{
 if(PlayerInfo[playerid][pJob] != 14 && PlayerInfo[playerid][pJob2] != 14)
 {
  SendClientMessage(playerid,COLOR_GREY,"   Uyuşturucu Kaзakзısı değilsin!");
  return 1;
 }
 new mypoint = -1;

 new playername[MAX_PLAYER_NAME];
 GetPlayerName(playerid, playername, sizeof(playername));
 for (new i=0; i<MAX_POINTS; i++)
 {
  if(IsPlayerInRangeOfPoint(playerid, 3.0, Points[i][Pointx], Points[i][Pointy], Points[i][Pointz]) && strcmp(Points[i][Name], "Drug Factory", true) == 0)
  {
   mypoint = i;
  }
 }
 if(mypoint == -1)
 {
  SendClientMessage(playerid, COLOR_GREY, "Uyuşturucu fabrikasında değilsin!");
  return 1;
 }
 if(PlayerInfo[playerid][pCrates])
 {
  SendClientMessage(playerid, COLOR_GREY, "   Daha fazla uyuşturucu kasası taşıyamazsın!");
  return 1;
 }
  if(CheckPointCheck(playerid))
  {
    SendClientMessage(playerid, COLOR_WHITE, "Şu anki checkpoint'inizin iptal edildiğinden emin olun (Materyal paketleriniz veya mevcut checkpoint'iniz olabilir).");
     return 1;
   }
 if(GetPlayerCash(playerid) >= 100)
 {
  SendClientMessage(playerid, COLOR_LIGHTRED,"Ne зeşit bir uyuşturucu taşımak istiyorsun? (Цrnek: crack veya pot)");
  SetPVarInt(playerid, "ChoosingDrugs", 1);
  return 1;
 }
 else
 {
  SendClientMessage(playerid, COLOR_GREY," $100'ı karşılayamıyorsun.");
  return 1;
 }
}
This is the code. /kasaal = /getcrate.

But Ingame, when I go there and type /kasaal(/getcrate) it says you're not at drug factory. And there's no pickup there. What to do?
Reply


Messages In This Thread
Crate bug - by fuem1907 - 04.05.2013, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)