Fixed! - 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: Fixed! (
/showthread.php?tid=171298)
Fixed! -
Luis- - 26.08.2010
Yeah I made a /drink command and i type the command and it says "Sever unknown command" even though i get the menu..
Also i have set it so if the player is not near the bar it says "You are not at the Bar" but that does not work..
pawn Код:
if (strcmp("/drink", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0, 499.2672, -20.6538, 1000.6797))
{
ShowMenuForPlayer(Drink, playerid);
}
}
else
{
{
SendClientMessage(playerid, COLOR_WHITE, "You are not at the Bar");
}
return 1;
}
Fixed!!
Re: /drink command? -
Backwardsman97 - 26.08.2010
pawn Код:
if (!strcmp("/drink", cmdtext, true))
{
if (IsPlayerInRangeOfPoint(playerid, 5.0, 499.2672, -20.6538, 1000.6797))
{
ShowMenuForPlayer(Drink, playerid);
return 1;
}
else
return SendClientMessage(playerid, COLOR_WHITE, "You are not at the Bar");
}
Give that a go.