- 0
Problema '/buylevel' help va rog! Fast daca se poate.
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
NuamNume
Salut, de o zi am problema asta si nu stiu cum sa o rezolv.
Pur si simplu, daca nu am RP-uri, imi scrie ca nu am, este normal. Dar daca am rp-uri si dau /buylevel imi scrie ca nu am rp-uri... de la ce ar putea sa fie?
YCMD:buylevel(playerid, params[], help)
{
new respect = (PlayerInfo[playerid][pLevel] * 3), money = (PlayerInfo[playerid][pLevel] * 250);
if(PlayerInfo[playerid][pRespect] < respect)
return SendClientMessage(playerid, COLOR_GREY, "Nu ai destule RP-uri! Foloseste comanda /stats pentru a vedea cate RP-uri ai.");
if(GetPlayerMoney(playerid) < money)
return SendClientMessage(playerid, COLOR_GREY, "You don't have enough money!");
GivePlayerMoney(playerid, -money);
UpdateLevelBar(playerid);
PlayerInfo[playerid][pLevel] ++;
PlayerInfo[playerid][pRespectPoints] -= respect;
mysqlQuery("UPDATE `users` SET `RespectPoints` = '%d', `Level` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pRespectPoints], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pSQLID]);
SendFormatMessage(playerid, COLOR_YELLOW, "Your level is now %d!", PlayerInfo[playerid][pLevel]);
return true;
}
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now