- 0
Ajutor comanda /bonus
-
Similar Content
-
- 5 answers
- 619 views
-
- 1 answer
- 615 views
-
ajutor conectare data de baze in gamemode ca nustiu care pun ca le pun pe amandoua si numi merge va las jos sa imi spuneti care ip trebuie
By pericz,
- 8 answers
- 2.442 views
-
- 1 reply
- 511 views
-
- 4 replies
- 658 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Valentin.
Salutare, mi-am facut propria comanda de [ /bonus ] , dar imi da eroare... Va rog frumos sa ma ajutati..
CMD:bonus(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if(BonusActiv > 0) { if(PlayerInfo[playerid][pLevel] <= 2) { GivePlayerCash(playerid, 30000000); PlayerInfo[playerid][pLevel] = 3; PlayerInfo[playerid][pPremiumPoints] = 100; Update(playerid, pLevelx); Update(playerid, pCashx); Update(playerid, pPremiumPointsx); SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SendClientMessage(playerid, COLOR_WHITE, "--------------------------[RPG.AFUMATII.RO]---------------------------------"); SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000, te poti duce la un job si poti sa-ti cumperi o masina!"); SendClientMessage(playerid, COLOR_BLUE, "Ai primit level 3, de la level 5 poti intra intr-o factiune!"); SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 puncte premium pe care le poti folosi in [/shop]!"); SendClientMessage(playerid, COLOR_WHITE, "--------------------------[RPG.AFUMATII.RO]---------------------------------"); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !"); } } return 1; } CMD:activatebonus(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 6) { if(BonusActiv == 0) { BonusActiv = 1; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!"); } else { BonusActiv = 0; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!"); } } else { SendClientMessage(playerid, COLOR_ERROR, AdminOnly); } } return 1; }Imi da eroarea asta: https://imgur.com/a/MvBsggM
Va rog frumos, +1 la cine ma ajuta!!!
12 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