Erros - 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: Erros (
/showthread.php?tid=504636)
Erros -
MrPlaysino - 05.04.2014
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
}
Re: Erros -
]Rafaellos[ - 05.04.2014
Did you define ShowPlayerDialog again? Remove it.
Re: Erros -
Dokins - 05.04.2014
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
}