Jump to content
  • 0

Problema


Adel

Question

7 answers to this question

Recommended Posts

  • 0
Acum 19 minute, AlexxAdv a spus:

Pai in primul rand folosesti YCMD si tu ai YCMD:bonus(playerid, params[]) cand trebui sa ai YCMD:bonus(playerid, params[], help) si in loc de pInfo incearca sa modifici in PlayerInfo

Am facut tot ce ai spus si arata asa:

D:\\gmm.pwn(23) : warning 202: number of arguments does not match definition
D:\\gmm.pwn(25) : error 017: undefined symbol "PlayerInfo"
D:\\gmm.pwn(25) : warning 215: expression has no effect
D:\\gmm.pwn(25) : error 001: expected token: ";", but found "]"
D:\gmm.pwn(25) : error 029: invalid expression, assumed zero
D:\\gmm.pwn(25) : 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.

Cam aceleasi erori Alex.
 

Link to comment
Share on other sites

  • 0
Acum 24 minute, AlexxAdv a spus:

Pai in primul rand folosesti YCMD si tu ai YCMD:bonus(playerid, params[]) cand trebui sa ai YCMD:bonus(playerid, params[], help) si in loc de pInfo incearca sa modifici in PlayerInfo

problema este de la aceasta linie:

if(pInfo[playerid][pScore] > 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Ai primit deja bonusul de bun venit.");

 

 

Link to comment
Share on other sites

  • 0
Acum 16 minute, PawnFox a spus:

Daca ai putea sa ne arati linia 25.

Sintaxa pentru YCMD este YCMD:bonus ( playerid, params[], help ) nu YCMD:bonus ( playerid, params[] ) cum zicea Alexx.

 

YCMD:bonus ( playerid, params[], help )
{
  LINIA 25  if(PlayerInfo[playerid][pScore] > 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Ai primit deja bonusul de bun venit.");
    pInfo[playerid][pScore] += 1, SetPlayerScore(playerid, pInfo[playerid][pScore]), pInfo[playerid][pPremium] = gtm+(10*86400);
    GiveMoney(playerid, 10000000),pInfo[playerid][pSpinGift] += 2, format(stmsg[playerid], 166, "* Felicitari %s, ai primit cadou 10.000.000$ si Cont Premium valabil 10 zile.", GetName(playerid)),
    SendClientMessage(playerid, COLOR_LIGHTBLUE, stmsg[playerid]);
    switch(random(5))
    {
        case 0:
        {
            pInfo[playerid][aVar][34] = 411;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Infernus, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
        }
        case 1:
        {
            pInfo[playerid][aVar][34] = 541;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Bullet, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
        }
        case 2:
        {
            pInfo[playerid][aVar][34] = 560;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Sultan, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
        }
        case 3:
        {
            pInfo[playerid][aVar][34] = 559;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Jester, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
        }
        case 4:
        {
            pInfo[playerid][aVar][34] = 415;
            for(new r = 0; r < 15; ++r) if(Veh[playerid][r][Owner] != pInfo[playerid][pID]) return strmid(Veh[playerid][r][Class], "Free", 0, strlen("Free"), 16), VehExORM(r, playerid),
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit vehiculul de tip Cheetah, acceseaza-ti vehiculul prin comanda /v. Vehiculul va fi disponibil pana la nivel 5.");
        }
    }
    return 1;
}

Link to comment
Share on other sites

  • 0

D:\\gmm.pwn(25) : error 017: undefined symbol "PlayerInfo"

 

Asta inseamna ca nu e definit PlayerInfo ....

Ar trebui sa ai un enumerator:

	enum PlayerInfo 
	{
	pXYZ,
	pYZX,
	pXZY
	};
	new pData [ MAX_PLAYERS ] [ PlayerInfo];
	

 

communitylogosml.png

94.23.120.101:7778

Link to comment
Share on other sites

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

 


D:\\gmm.pwn(25) : error 017: undefined symbol "PlayerInfo"

 

 

Asta inseamna ca nu e definit PlayerInfo ....

Ar trebui sa ai un enumerator:

 


	enum PlayerInfo 
	{
	pXYZ,
	pYZX,
	pXZY
	};
	new pData [ MAX_PLAYERS ] [ PlayerInfo];
	

 

Lafel frate....

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.