Mysql help - Rep+
#1

Hello, How I can set everyone to PVIP if they had Diamond VIP only



Sorry for my bad english
Reply
#2

First you need to know the number of each VIP type.
Код:
vipType[playerid];
or if you have an enum for your player infos...
Код:
enum PlayerInfos {
    vipType,
}
Then to save it to your MySQL database.
This is an exemple query...
Код:
new query[50];
format(query, sizeof(query), "UPDATE accounts SET vipType =  '%d' WHERE pID = '%d'", vipType[playerid], pID);
//Send the query
pID is just a place holder, there should be placed your real player ID of the database, the one you want updated.

To give a vip level for a player.
Код:
vipType[playerid] = 1;//Bronze VIP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)