SA-MP Forums Archive
CleverBot - 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: CleverBot (/showthread.php?tid=443907)



CleverBot - DeMoX - 14.06.2013

Hi all,
I have saw Cleverbot include on this thread : https://sampforum.blast.hk/showthread.php?tid=315117
And i hosted the PHP files at WAMP server, included the CleverBot include and made a command that let you talk with the bot.
Код:
YCMD:bot(playerid,params[],help)
{
    if(isnull(params)) return SendClientMessage(playerid,-1,"[USAGE] /message <Text>");
    new str[128];
    format(str, sizeof(str), "Me: %s", Name(playerid),params);
    SendClientMessage(playerid, C_GREEN, test);
    SendPlayerMessageToCleverbot(playerid, params);
    return 1;
}
But when i tested it, the clever bot doesn't say anything...
Screen:


When i run my WAMP localhost :

1.Test.php :
Код:
Cleverbot:
2.chatterbotapi.php :
Код:
(empty)
And the link on Clever Bot include :
Код:
#define CleverHost "localhost/test.php" //Location to the test.php file! (Without HTTP://)



Re: CleverBot - MyNinja - 14.06.2013

try to get the PHP files on a (sub-)domain and then update the script, then try. I'm sure the script can't recognize localhost for some reasons


Re: CleverBot - DeMoX - 14.06.2013

I'm not sure what do you mean with sub domain? :/


Re: CleverBot - MyNinja - 14.06.2013

Well, go register some domain in 000webhost, upload the PHP files, link the website to the script, and try