how to
#1

how to read inrandom from a dini file ? for automessages

like in dini file i put 5 automessages and server send it in random

example

automess1
automess2
automess3 ..... in a dini
Reply
#2

Why dini file? Just put it in the script lol.
Reply
#3

i have 2 change the messages in real time with no reset server
Reply
#4

Im not sure how thats done (don't use dini) but wouldnt it be better/faster if you just put the messages in your code?

Edit: missed last post
Reply
#5

look up i say have 2 change messages in real time
Reply
#6

http://forum.sa-mp.com/showthread.ph...ghlight=random
Reply
#7

omg i know how to make this messages i want make it in dini for change !!!!!!!!!!!!!!!!!!!!
Reply
#8

Quote:
Originally Posted by gigi1223
look up i say have 2 change messages in real time
Yeah it should warn you that others have posted like it used to.


EDIT, Could you not number the files like mes1, mes2, mes3, mes4, mes5 then get a random value between 1-5. Then format a string like, this (you will need to modify it like i said i dont use dini).
pawn Код:
format(Fstr,sizeof(Fstr),"mes%d.ini",RandNumber);//use this to read from dini?
And use something like DiniGetString (syntax probably wrong) on Fstr.

I hope you get what i mean. Im shit at explaining things
Reply
#9

okay thx you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)