little error - 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)
+--- Thread: little error (
/showthread.php?tid=624829)
little error -
EclipseWho - 23.12.2016
HI ! i've scripted this but i got an error, can u help me ?
Код:
CMD:armes(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,3234.4580,-3354.9917,123.6851))
{
ShowPlayerDialog(playerid, DIALOG_BBSHOP, DIALOG_STYLE_LIST, " Vendeur d'armes", "Pistolets\nMitraillettes\nFusils a pompes\nSniper\nFusil\nArmes Lourdes\nArmure{$5000}", "Selectionner", "Annuler");
else
{
SendClientMessage(playerid, 0x000000AA, "Vous n'etes pas chez le vendeur d'arme");
}
}
return 1;
}
Error: error 029: invalid expression, assumed zero
Re: little error -
oMa37 - 23.12.2016
PHP код:
CMD:armes(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,10,3234.4580,-3354.9917,123.6851))
{
ShowPlayerDialog(playerid, DIALOG_BBSHOP, DIALOG_STYLE_LIST, " Vendeur d'armes", "Pistolets\nMitraillettes\nFusils a pompes\nSniper\nFusil\nArmes Lourdes\nArmure{$5000}", "Selectionner", "Annuler");
}
else
{
SendClientMessage(playerid, 0x000000AA, "Vous n'etes pas chez le vendeur d'arme");
}
return 1;
}
You were missing a brackets.
Re: little error -
EclipseWho - 23.12.2016
oh yes xd, thanks