Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Salut am facut comanda bonus si primesc aceste 2 erori, ma poate ajuta cineva sa le rezolv ?

https://imgur.com/a/dOir8Az 32613

https://imgur.com/a/umWfRXL 32629

CMD:bonus(playerid, params[])
{
 if(PlayerInfo[playerid][pLevel] == 1)
{
   GivePlayerCash(playerid, 10000000);
   PlayerInfo[playerid][pLevel] = 3;
   PlayerInfo[playerid][pPremiumPoints] = 300;
   PlayerInfo[playerid][pRob] = 20;

   PlayerInfo[playerid][pFlyLic] = 1;
   PlayerInfo[playerid][pFlyLicT] += 50;
   PlayerInfo[playerid][pFlyLicS] = 0;
   PlayerInfo[playerid][pBoatLic] = 1;
   PlayerInfo[playerid][pBoatLicT] += 50;
   PlayerInfo[playerid][pBoatLicS] = 0;
   PlayerInfo[playerid][pGunLic] = 1;
   PlayerInfo[playerid][pGunLicT] += 50;
   PlayerInfo[playerid][pGunLicS] = 0;   
    new str[128];                                                                           
    format(str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='%d',`FlyLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pFlyLicT],PlayerInfo[playerid][pSQLID]);
    mysql_query(SQL,str);
    format(str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='%d',`BoatLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pBoatLicT],PlayerInfo[playerid][pSQLID]);
    mysql_query(SQL,str);
    format(str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='%d', `GunLicS`='0' WHERE `ID`='%d'",PlayerInfo[playerid][pGunLicT],PlayerInfo[playerid][pSQLID]);
    mysql_query(SQL,str);

    SCM(playerid, COLOR_WHITE, "------------------------------------------------------------------");
    SCM(playerid, COLOR_WHITE, "Pentru ca esti incepator, iti oferim cateva bonusuri:");
    SCM(playerid, COLOR_GREEN, "(+) $10.000.000");
    SCM(playerid, COLOR_GREEN, "(+) Levelul tau este 3");
    SCM(playerid, COLOR_GREEN, "(+) 20 Rob Points");        
    SCM(playerid, COLOR_GREEN, "(+) 300 Premium Points");
    SCM(playerid, COLOR_WHITE, "------------------------------------------------------------------");    
}
return 1;
}
 

C:\Users\GTX710Ti\Desktop\gm\gamemodes\1.31\wa-rpg.pwn(32613) : warning 217: loose indentation
C:\Users\GTX710Ti\Desktop\gm\gamemodes\1.31\wa-rpg.pwn(32629) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
[Finished in 82.9s]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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.