Jump to content

Am nevoie si eu ca nush ce sa fac.


Vally

Recommended Posts

CMD:bonus(playerid, params[])
    {
            if(PlayerInfo[playerid][pLevel] == 1 )
            {
                GivePlayerCash(playerid, 1000000);
                new playerlevel = PlayerInfo[playerid][pLevel];
                PlayerInfo[playerid][pLevel] = playerlevel + 2;
                SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Ai primit un cadou din partea staffului");
            }
            else
            {
                SendClientMessage(playerid,COLOR_RED,"Cadoul este doar pentru incepatori (Level 1)!");
               }
        return 1;
        }

 

 

 

 

ERORILE SUNT:

(247) : error 017: undefined symbol "PlayerInfo"
(247) : warning 215: expression has no effect
(247) : error 001: expected token: ";", but found "]"
(247) : error 029: invalid expression, assumed zero
(247) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

Acum 12 ore, Vally a spus:

CMD:bonus(playerid, params[])
    {
            if(PlayerInfo[playerid][pLevel] == 1 )
            {
                GivePlayerCash(playerid, 1000000);
                new playerlevel = PlayerInfo[playerid][pLevel];
                PlayerInfo[playerid][pLevel] = playerlevel + 2;
                SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Ai primit un cadou din partea staffului");
            }
            else
            {
                SendClientMessage(playerid,COLOR_RED,"Cadoul este doar pentru incepatori (Level 1)!");
               }
        return 1;
        }

 

 

 

 

ERORILE SUNT:

(247) : error 017: undefined symbol "PlayerInfo"
(247) : warning 215: expression has no effect
(247) : error 001: expected token: ";", but found "]"
(247) : error 029: invalid expression, assumed zero
(247) : fatal error 107: too many error messages on one line

salut, incearca in  loc de PlayerInfo in pInfo

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

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
Reply to this topic...

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