SA-MP Forums Archive
/help Command / IsAtCarshop Prob - 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: /help Command / IsAtCarshop Prob (/showthread.php?tid=73375)



/help Command / IsAtCarshop Prob - nickbugun - 14.04.2009

Quote:

if(IsAtCarshop(playerid, 0))
{
if(strcmp(cmdtext, "/help carshop", false) == 0)
SendClientMessage(playerid,blue,"[!] You are not at the Car Shop!");
}
else
{
if(strcmp(cmdtext, "/help carshop", true) == 0)
{
SendClientMessage(playerid,blue,"[!] Find a CarDealer, and see which vehicles he can sell you.");
return 1;
}
}

I`m having a problem, if a player isn`t at a car shop, and types /help carshop, it comes normally(you are not at carshop), but if a player enters the car shop and types that it tells him the same!
HELP?!?


Re: /help Command / IsAtCarshop Prob - Benjo - 14.04.2009

You will have to post the IsAtCarshop method so that we can understand this


Re: /help Command / IsAtCarshop Prob - nickbugun - 14.04.2009

http://pastebin.com/m1230a7a
http://forum.sa-mp.com/index.php?topic=83714.0

...


Re: /help Command / IsAtCarshop Prob - nickbugun - 14.04.2009

help?!?!