18.03.2019, 17:44
(
Последний раз редактировалось Dolke; 22.03.2019 в 21:54.
)
Hello.
I tried to make table that stores "Name" and "Level" of an Admin.
I just tried to update existing information in table with new but I cant get it to work.
Here is the code,I do not see what is wrong here (Maybe Im blind )
I tried to make table that stores "Name" and "Level" of an Admin.
I just tried to update existing information in table with new but I cant get it to work.
Here is the code,I do not see what is wrong here (Maybe Im blind )
Код:
YCMD:makeadminslot(playerid, params[], help) { new id,level,slot,query[512],DB:base; if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, SIVAUB, "No"); if(sscanf(params, "ii", id,slot)) return SendClientMessage(playerid, SIVAUB, "Use: /makeadminslot [id] [slot (1-20)]"); level = PlayerInfo[id][pAdmin]; base = db_open("base.db"); format(query, sizeof(query), "UPDATE admins SET Name = %s WHERE Slot = %d", GetName(id),slot); db_query(base, query); }