Jump to content
  • 0

Problema bonus


DanyPiticu

Question

Salut tot imi da aceste 4 errori si nu gasesc cum sa le rezolv ma poate ajuta cineva va rog "gm-ul este burned "cel de la Edyson de pe canal".

image.thumb.png.a78e24299620cb410270411d4343fb47.png

Si eroarea complecta este asta.

C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : warning 215: expression has no effect
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 001: expected token: ";", but found ")"
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Mersii pentru timpul acordat.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0
1 minute ago, KB.HERO said:

pune in loc de

if(IsPlayerConnected(playerid))

pune  

if(IsPlayerConnected(playerid)); 

 

Am pus cum ai spus tu dar nu a facut nimic la linie "if*BOnusActiv > 0) si mi-a dat o erare in +
 

C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 036: empty statement
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : warning 215: expression has no effect
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 001: expected token: ";", but found ")"
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14305) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

 

Link to comment
Share on other sites

  • 0

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] < 3)
             {
                 new ip[16],query[500];
                 GetPlayerIp(playerid, ip, sizeof(ip));
                format(query, sizeof(query), "SELECT * FROM `users` WHERE `LastIP` = '%s' AND `Level` >= '3'", ip);
                new Cache: stringresult = mysql_query(SQL, query);
                if(cache_get_row_count () > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You used this command an another account.");
                    return 1;
                }
                cache_delete(stringresult);

                 PlayerInfo[playerid][pOcase] += 5;
                Update(playerid,pOcasex);
                PlayerInfo[playerid][pOkey] += 5;
                Update(playerid,pOkeyx);
                 GivePlayerCash(playerid, 25000000);
                 PlayerInfo[playerid][pLevel] = 3;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                 PlayerInfo[playerid][pPremiumPoints] += 100;
                Update(playerid,pPremiumPointsx);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $25.000.000, level 3, 100 Puncte Premium, 5 key si 5 case de inceput!");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
    }
    return 1;
}

 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
7 minutes ago, KB.HERO said:

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] < 3)
             {
                 new ip[16],query[500];
                 GetPlayerIp(playerid, ip, sizeof(ip));
                format(query, sizeof(query), "SELECT * FROM `users` WHERE `LastIP` = '%s' AND `Level` >= '3'", ip);
                new Cache: stringresult = mysql_query(SQL, query);
                if(cache_get_row_count () > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You used this command an another account.");
                    return 1;
                }
                cache_delete(stringresult);

                 PlayerInfo[playerid][pOcase] += 5;
                Update(playerid,pOcasex);
                PlayerInfo[playerid][pOkey] += 5;
                Update(playerid,pOkeyx);
                 GivePlayerCash(playerid, 25000000);
                 PlayerInfo[playerid][pLevel] = 3;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                 PlayerInfo[playerid][pPremiumPoints] += 100;
                Update(playerid,pPremiumPointsx);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $25.000.000, level 3, 100 Puncte Premium, 5 key si 5 case de inceput!");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
    }
    return 1;
}

 

Iti merge comanda astA?

 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
9 minutes ago, KB.HERO said:

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] < 3)
             {
                 new ip[16],query[500];
                 GetPlayerIp(playerid, ip, sizeof(ip));
                format(query, sizeof(query), "SELECT * FROM `users` WHERE `LastIP` = '%s' AND `Level` >= '3'", ip);
                new Cache: stringresult = mysql_query(SQL, query);
                if(cache_get_row_count () > 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You used this command an another account.");
                    return 1;
                }
                cache_delete(stringresult);

                 PlayerInfo[playerid][pOcase] += 5;
                Update(playerid,pOcasex);
                PlayerInfo[playerid][pOkey] += 5;
                Update(playerid,pOkeyx);
                 GivePlayerCash(playerid, 25000000);
                 PlayerInfo[playerid][pLevel] = 3;
                 Update(playerid, pLevelx);
                 Update(playerid, pCashx);
                 PlayerInfo[playerid][pPremiumPoints] += 100;
                Update(playerid,pPremiumPointsx);
                 SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $25.000.000, level 3, 100 Puncte Premium, 5 key si 5 case de inceput!");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
        }
    }
    return 1;
}

 

Tot nu merge oare ce are ce pot sa-i fac? ...

 

C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : warning 215: expression has no effect
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 001: expected token: ";", but found "]"
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

Edited by DanyPiticu
Link to comment
Share on other sites

  • 0
1 oră în urmă, DanyPiticu a spus:

Tot nu merge oare ce are ce pot sa-i fac? ...

 

C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : warning 215: expression has no effect
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 001: expected token: ";", but found "]"
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : error 029: invalid expression, assumed zero
C:\Users\mirgo\OneDrive\Desktop\server mp\gm\burned.ro\gamemodes\wa-rpg.pwn(14303) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

 

Care este linia 14303 ?

  • Thanks 1

Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte.

Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net.

Aveti grija pe cine ajutati, majoritatea sunt caini.

Link to comment
Share on other sites

  • 0
Acum 59 minute, DanyPiticu a spus:

<>

Incearca aceasta comanda:

 
	CMD:bonus(playerid, params[])
{
    new str[128];
    if(PlayerInfo[playerid][pLevel] != 1) return SCM(playerid, -1, "Ai luat deja acest bonus");
    if(IsPlayerConnected(playerid))
    {
            {
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            GivePlayerCash(playerid, 1000000);
            PlayerInfo[playerid][pLevel] = 3;
            PlayerInfo[playerid][pPremiumPoints] += 50;
              Update(playerid, pCashx);
                Update(playerid, pLevelx);
            Update(playerid, pPremiumPointsx);
            SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
            mysql_query(SQL,str);
             ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "Server Bonus", "{ffffff}ai folosit comanda bonus :\n - Level 3\n - 1.000.000 $\n -{ffff00} 50 {ffffff}Puncte Premium","Multumesc!","");
        }
    }
    return 1;
}
	

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.