Pawno Crashing
#1

Yes, I have searched, and I couldn't find it. I've noticed people around here are nice enough if you give them some lines so here they are, please help! Thank you.
http://pastebin.com/fQ0nHUAe
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/buycar", cmdtext, true, 10) == 0) //Car Purchase, Location.
    {
    if(!IsPlayerInRangeOfPoint(playerid, 3, 511.8329,-1510.9016,14.5666)));
    {
        SendClientMessage(playerid, COLOR_WHITE, "Loading Menu.");
        ShowMenuForPlayer(buycar,playerid);
        return 1;
    }
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "You are not at the Car Dealership! Located East of Spawn!");
        return 1;
    }
    return 0;
}
Try this.
Reply
#3

Still crashes. It compiles other scrips fine. It works, I put some errors in on purpose to see what it does, it lists the errors and works fine. It has to be with my script.
Reply
#4

One moment, im gonna test the script for a second.
And i'm gonna fix the script for you.
Reply
#5

Alright thank you very much.
Reply
#6

Okey, i fixed the script for you.
Here you go: Link

PS: i forgot to fix the command... But here is the fixed one.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/buycar", cmdtext, true, 10) == 0) //Car Purchase, Location.
  {
    if(IsPlayerInRangeOfPoint(playerid, 3, 511.8329,-1510.9016,14.5666))
    {
      SendClientMessage(playerid, COLOR_WHITE, "Loading Menu.");
      ShowMenuForPlayer(buycar,playerid);
      return 1;
    }
    else
    {
      SendClientMessage(playerid, COLOR_WHITE, "You are not at the Car Dealership! Located East of Spawn!");
      return 1;
    }
  }
  return 0;
}
Reply
#7

Eh 2shared isn't working for me, could you upload to mediafire or email to me?
Reply
#8

These links shuld work fine for you:
Solidfiles
Mediafire
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)