Random MOTD
#1

How Do I Make This Sends Random Saved MOTDs?

pawn Код:
for(new i = 0; i < MAX_GANGS; i++)
    {
        if(dini_Exists(gFileId(i)))
        {
        if(strval(dini_Get(gFileId(i),"GangMOTD")) != -1)
        {
        new motd[128];
        format(motd,sizeof(motd),"MOTD: %s",dini_Get(gFileId(i),"GangMOTD"));
        SendClientMessageToAll(0xFFB300FF, motd);
        break;
        }
        }
    }
It only sends me the MOTD of the first gang.

NOTE I will convert Dini to MySQL later just tell me about the motd thing.
Reply


Messages In This Thread
Random MOTD - by Youssef221 - 19.07.2015, 02:02
Re: Random MOTD - by Glenn332 - 19.07.2015, 02:51
Re: Random MOTD - by Youssef221 - 19.07.2015, 03:03
Re: Random MOTD - by Glenn332 - 19.07.2015, 03:08

Forum Jump:


Users browsing this thread: 1 Guest(s)