little error
#1

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
Reply
#2

PHP код:
CMD:armes(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid,10,3234.4580,-3354.9917,123.6851))
    {
        
ShowPlayerDialog(playeridDIALOG_BBSHOPDIALOG_STYLE_LIST" Vendeur d'armes""Pistolets\nMitraillettes\nFusils a pompes\nSniper\nFusil\nArmes Lourdes\nArmure{$5000}""Selectionner""Annuler");
    }
    else
    {
        
SendClientMessage(playerid0x000000AA"Vous n'etes pas chez le vendeur d'arme");
    }
    return 
1;

You were missing a brackets.
Reply
#3

oh yes xd, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)