SA-MP Forums Archive
help with 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: help with error (/showthread.php?tid=594453)



help with error - itachi - 18.11.2015

Quote:

ERROR : error 017: undefined symbol "dcmd_hudba"
inconsistent return types (array & non-array)

Quote:

LINE : dcmd(hudba,5,cmdtext);

Код:
 dcmd_hudba(playerid,parmas[])
{
#pragma unused parmas
new string[256];
LEVEL(2);
if(isnull(parmas)) return SCM(playerid,-1,"{FFFF00}/hudba {00FF00}[ URL ]");
format(string, sizeof(string), "{FF0000}[ Audio Stream ] {800080}Administrбtor {FFFF00}%s {800080}Spustil {FFFF00}Audio Stream{00FF00}.", Jmeno(playerid));
SCMTA(-1, string);
for(new i=0;i<=MAX_PLAYERS;i++)
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i,parmas);
}
    return 1;

}



Re: help with error - ATGOggy - 18.11.2015

Do you have the dcmd define or include?