Quote:
Originally Posted by DiGiTaL_AnGeL
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/market", true)) { if(IsPlayerInRangeOfPoint(playerid , 2.0, 1067.9446, -892.5276, 43.1797)) // With this line here and the down one { // Those lines here ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "What do you want to buy ?", "Sprunk ($3)\nBeer ($5)\nWine ($10)", "Purchase", "Cancel"); } else { SendClientMessage(playerid, 0xFF0000FF, "You are not at the place!"); } return 1; } return 1; }
Try this.
|
Still same problem
pawn Код:
C:\Documents and Settings\Private\Desktop\New folder\filterscripts\Smoke.pwn(64) : error 001: expected token: "*then", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
My code for reminder :
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/market", cmdtext, true, 10) == 0)
{
if IsPlayerInRangeOfPoint(playerid , 2.0, 1067.9446, -892.5276, 43.1797)
{
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "What do you want to buy ?", "Sprunk ($3)\nBeer ($5)\nWine ($10)", "Purchase", "Cancel");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You are not in any market !");
}
return 1;
}
return 1;
}
Quote:
Originally Posted by Blackazur
Try that:
Код:
if(!strcmp(cmdtext, "/market", true))
{
if (IsPlayerInRangeOfPoint(playerid , 2.0, 1067.9446, -892.5276, 43.1797))
{
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, "What do you want to buy ?", "Sprunk ($3)\nBeer ($5)\nWine ($10)", "Purchase", "Cancel");
}
return 0;
}
|
Thanks working . Rep+