Pawno Crashing - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno Crashing (
/showthread.php?tid=258559)
Pawno Crashing -
Aoi_Rikuto - 31.05.2011
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
Re: Pawno Crashing -
MetalScript - 31.05.2011
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.
Re: Pawno Crashing -
Aoi_Rikuto - 31.05.2011
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.
Re: Pawno Crashing -
MetalScript - 31.05.2011
One moment, im gonna test the script for a second.
And i'm gonna fix the script for you.
Re: Pawno Crashing -
Aoi_Rikuto - 31.05.2011
Alright thank you very much.
Re: Pawno Crashing -
MetalScript - 31.05.2011
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;
}
Re: Pawno Crashing -
Aoi_Rikuto - 31.05.2011
Eh 2shared isn't working for me, could you upload to mediafire or email to me?
Re: Pawno Crashing -
MetalScript - 31.05.2011
These links shuld work fine for you:
Solidfiles
Mediafire