I need help with MySql factions!
#6

It's the same process, make a variable, save it, load it.

Simple as that..

Converting to MySQL is simple too..

register:

Код:
query("INSERT INTO 'accounts' (faction) VALUES('first faction ID here'),connectionstring)

save:
Код:
format(string,sizeof(string),"UPDATE accounts SET faction = '%d' WHERE name = '%s'",Faction[playerid],GetName(playerid)); < faction id
so it would be like this for cmds etc:

Код:
if(Faction[playerid] == 1/2/3/4/5/6/7/etc)
// do something..
I don't even script MySQL i know this O.o
Reply


Messages In This Thread
I need help with MySql factions! - by Joseph! - 27.05.2010, 10:07
Re: I need help with MySql factions! - by shady91 - 27.05.2010, 10:18
Re: I need help with MySql factions! - by Joseph! - 27.05.2010, 10:21
Re: I need help with MySql factions! - by shady91 - 27.05.2010, 10:29
Re: I need help with MySql factions! - by Joseph! - 27.05.2010, 10:42
Re: I need help with MySql factions! - by coole210 - 27.05.2010, 13:01
Re: I need help with MySql factions! - by Joseph! - 27.05.2010, 15:04
Re: I need help with MySql factions! - by playbox12 - 27.05.2010, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)