SA-MP Forums Archive
Need HELP! ******* is NOT WORKING - 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: Need HELP! ******* is NOT WORKING (/showthread.php?tid=629702)



Need HELP! ******* is NOT WORKING - Hapukoorepakk - 02.03.2017

What is wrong? ingame not playing...

Sorry for my bad english.

Код:
#include < a_samp >

public OnFilterScriptInit() {
	print("\n----------------------------------------------");
	print(" Autor: AngrySnake - EHT ******* Systeem ");
	print("----------------------------------------------\n");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[]) {
    if (strcmp("/*******", cmdtext, true) == 0) {
        ShowPlayerDialog(playerid, 2016, DIALOG_STYLE_INPUT, "{FFFFFF}You{F81414}Tube", "{FFFFFF}Sisesta loo nimi mida soovid:", "Kuula", "Sulge");
        return 1;
    } else if (strcmp("/*******", cmdtext, true, 7) == 0) {
        if(!cmdtext[7])return SendClientMessage(playerid, 0xD6E1EBFF, "/*******");
        new ola[255];
        format(ola, sizeof(ola), "https://6t.pe/?song=%s", cmdtext[7]);
        PlayAudioStreamForPlayer(playerid, ola);
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    if(dialogid == 2016) {
        if(strlen(inputtext)) {
            new ola[255];
            format(ola, sizeof(ola), "https://6t.pe/?song=%s", inputtext);
            PlayAudioStreamForPlayer(playerid, ola);

        }
    }
    return 0;
}



Re: Need HELP! ******* is NOT WORKING - YouHack - 02.03.2017

The 6t.pe returns nothing
( old API ) use the *******inmp3 api
https://www.*******inmp3.com/api/