[BOT] message - 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: [BOT] message (
/showthread.php?tid=308986)
[BOT] message -
DarkKillerWithPride<3 - 05.01.2012
Hey,
Is there someway to read random messages from a file ? basically I would find this easier to do instead of pawno as I spend alot of time on my iPhone, iPad etc.. where I don't have pawno but have FTP client instead and also use desktop connections alot. Possible?
Thanks,
Dark
Re: [BOT] message -
vincee - 05.01.2012
y_ini
Re: [BOT] message -
DarkKillerWithPride<3 - 05.01.2012
y_ini doesn't really help bro. I was looking for an example more.
Re: [BOT] message -
vincee - 05.01.2012
actually, use dini
and have something like this
pawn Код:
dini_Set("/bots/speach","Speach 1","well hello");
if(!dini_Exists("/bots/speach")){ dini_Create("/ERP05/speach.txt");
and have this to load I think
pawn Код:
new speach[128];
dini_Get("/bots/speach.txt","speach1"),
I'm not the greatest of scripters but that should get you started
learn dini
Re: [BOT] message -
DarkKillerWithPride<3 - 05.01.2012
Not meaning to be rude have you ever used a system like this? I'm only saying this as you seem to know nothing about which file saving method to use.
Re: [BOT] message -
vincee - 05.01.2012
Yes, I use it for my password factions. it loads the password (like /skfererf to loginto SD) from a .txt file, so I can easily edit the password through FTP.
Re: [BOT] message -
DarkKillerWithPride<3 - 05.01.2012
Ahh I see okay thanks will give Dini a try.