SA-MP Forums Archive
convent to ZCMD please and Errors! - 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: convent to ZCMD please and Errors! (/showthread.php?tid=386064)



convent to ZCMD please and Errors! - pln102 - 18.10.2012

Код:
C:\Users\Owner\Desktop\RP\filterscripts\epicradio.pwn(26) : error 010: invalid function or declaration
C:\Users\Owner\Desktop\RP\filterscripts\epicradio.pwn(30) : error 010: invalid function or declaration
Код:
Код:
        if (strcmp("/Stopradio", cmdtext, true, 10) == 0)
{
        StopAudioStreamForPlayer(playerid);
        SendClientMessage(playerid, 0xAA3333AA, "You have stopped the playing radio. . .");
        return 1;
}
Can you help me turn this cmd into ZCMD?
Example like this
Код:
command(radio, playerid, params[])
{
 	new string[1024], string1[512];
 	format(string1, sizeof(string1), "TMS Radio\nDefray Radio\nHot 108 Jamz");
  	format(string, sizeof(string), "%s%s", string1);
 	ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "pln102's Radiostation", string, "Confirm", "Close");
 	return 1;
 	}
        if (strcmp("/Stopradio", cmdtext, true, 10) == 0)
{
        StopAudioStreamForPlayer(playerid);
        SendClientMessage(playerid, 0xAA3333AA, "You have stopped the playing radio. . .");
        return 1;
}
Highlight Red is giving me errors and please help me convent to zcmd


Re: convent to ZCMD please and Errors! - Emmet_ - 18.10.2012

pawn Код:
CMD:stopradio(playerid, params[])
{
        StopAudioStreamForPlayer(playerid);
        SendClientMessage(playerid, 0xAA3333AA, "You have stopped the playing radio. . .");
        return 1;
}



Re: convent to ZCMD please and Errors! - dannyk0ed - 18.10.2012

pawn Код:
if (strcmp("/Stopradio", cmdtext, true, 10) == 0)
to
pawn Код:
CMD:stopradio(playerid, parmas[])
or
pawn Код:
CMD:radio(playerid, params[])



Re: convent to ZCMD please and Errors! - pln102 - 19.10.2012

thx guys, i'm releasing radio script
DANNY!!! CHICKEN GUY? REMBMER ME BITCH? I"M EAGLE/LUKA/KATIE!!!