SA-MP Forums Archive
Problem - 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)
+--- Thread: Problem (/showthread.php?tid=405182)



Problem - Stefan_Merce - 05.01.2013

Hi i have a bug when i try to /buycar in my server it crashes
but when i do the same on homehost it dosent


My script is zgaming



Re: Problem - Stefan_Merce - 05.01.2013

i have edited the gamemode but like i dowloaded a clean version put it on my host and it still crashes


Re: Problem - DJGama101 - 05.01.2013

What about plugins? Maybe them are causing crashes?


Re: Problem - azzerking - 05.01.2013

Make sure you have all plugins loaded in. Check your server.cfg file.

Also make sure the server your running is allowing certain plugins to work.


Re: Problem - DiGiTaL_AnGeL - 05.01.2013

Upload all the files and folders on host.


Re: Problem - aslan890 - 05.01.2013

Try using another /buycar command or post the command here so we can check


Re: Problem - Stefan_Merce - 05.01.2013

Quote:

CMD:buycar(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!IsPlayerInRangeOfPoint(playerid, 2, 2427.5811,111.4386,26.4844)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
if(PlayerInfo[playerid][pVIP] >= 2)
{
if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel])
{
format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
else ShowDialog(playerid, 10);
return 1;
}
if(PlayerInfo[playerid][vModel])
{
format(string, sizeof(string), "You already own vehicle ID %d.", PlayerInfo[playerid][pVeh]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
ShowDialog(playerid, 10);
return 1;
}

there


Re: Problem - aslan890 - 05.01.2013

Try this one:

Код:
CMD:buycar(playerid, params[])
{
  new string[128];
     if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
  if(!IsPlayerInRangeOfPoint(playerid, 2, -2033.0985,-117.4479,1035.1719)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
  if(PlayerInfo[playerid][pVIP] >= 2)
  {
    if(PlayerInfo[playerid][vModel] && PlayerInfo[playerid][vVModel])
    {
      format(string, sizeof(string), "You already own vehicles ID %d and %d.", PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVVeh]);
      SendClientMessage(playerid, COLOR_GREY, string);
        return 1;
    }
    else ShowDialog(playerid, 10);
      return 1;
  }
  if(PlayerInfo[playerid][vModel])
  {
    format(string, sizeof(string), "You already own vehicle ID %d.", PlayerInfo[playerid][pVeh]);
    SendClientMessage(playerid, COLOR_GREY, string);
      return 1;
  }
  ShowDialog(playerid, 10);
  return 1;
}



Re: Problem - Stefan_Merce - 05.01.2013

Still the same fcking thing


Re: Problem - aslan890 - 05.01.2013

Quote:
Originally Posted by Stefan_Merce
Посмотреть сообщение
Still the same fcking thing
Does it give error ? What kind of command you want?