#1

Hello, i habe two errors:
C:\Dokumente und Einstellungen\Maurice\Desktop\Fabulous-Life SCRIPT\gamemodes\life.pwn(1846) : error 021: symbol already defined: "ShowPlayerDialog"
C:\Dokumente und Einstellungen\Maurice\Desktop\Fabulous-Life SCRIPT\gamemodes\life.pwn(184 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

the code:
Код:
ocmd:creae(playerid,params[])
{
	    new string2[200];
        for(new i=0;i!=MAX_AUTOHAUS;i++)
        {
            if(IsPlayerInRangeOfPoint(playerid,3,AutoHaus[i][aX],AutoHaus[i][aY],AutoHaus[i][aZ]))
            {
                    if(i == 1)
                    {
                        format(string2,sizeof string2,"%s",CarName[AutoHaus[i][aAutoModelID] - 400]);
                    }
                    else
                    {
                        format(string2,sizeof string2,"%s\n%s",string2,CarName[AutoHaus[i][aAutoModelID] - 400]);
                    }
                }
            }
        }
        ShowPlayerDialog(playerid,DIALOG_AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string2,"Weiter","");// ERROR
		return 1; // ERROR
}
Reply
#2

Did you define ShowPlayerDialog again? Remove it.
Reply
#3

pawn Код:
ocmd:creae(playerid,params[])
{
        new string2[200];
        for(new i=0;i!=MAX_AUTOHAUS;i++)
        {
            if(IsPlayerInRangeOfPoint(playerid,3,AutoHaus[i][aX],AutoHaus[i][aY],AutoHaus[i][aZ]))
            {
                    if(i == 1)
                    {
                        format(string2,sizeof string2,"%s",CarName[AutoHaus[i][aAutoModelID] - 400]);
                    }
                    else
                    {
                        format(string2,sizeof string2,"%s\n%s",string2,CarName[AutoHaus[i][aAutoModelID] - 400]);
                    }
                }
            }
              ShowPlayerDialog(playerid,DIALOG_AUTOHAUS,DIALOG_STYLE_LIST,"Autohaus",string2,"Weiter","");
        }
        return 1; // ERROR
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)