Jump to content
  • 0

/buyvip error !


multisecret2000

Question

Buna Seara sa-mp.ro am si eu o problema cu BuyVIP l-am pus in Ladmin4v2 si cand am bagat tot am urmat si un tutorial imi da errorile astea

C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 017: undefined symbol "bvip"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 017: undefined symbol "Cancel"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Uitati si scriptu

#include <  dcmd    >

dcmd_buyvip(playerid,params[])

{

#pragma unused params

ShowPlayerDialog(playerid,bvip,DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}VIP Level 1 {FFAF00} --> {FF0000} 20 Hours\n{FFFFFF}VIP Level 2 {FFAF00} --> {FF0000} 40 Hours\n{FFFFFF}VIP Level 3 {FFAF00} --> {FF0000}60 Hours","Select","Cancel);

return 1;

}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if (dialogid == bvip)

{

if(response)

{

if(listitem == 0)

{

if AccInfo[playerid][hours] >= 20)

{

AccInfo[playerid][pVip] = 1;

AccInfo[playerid][hours] -= 20;

}

else

{

SendClienMessage(playerid,green,"You Don't Have 20 Hours for Buy VIP Level 1 ");

}

}

if(listitem == 1)

{

if AccInfo[playerid][hours] >= 40)

{

AccInfo[playerid][pVip] = 2;

AccInfo[playerid][hours] -= 40;

}

else

{

SendClienMessage(playerid,green,"You Don't Have 40 Hours for Buy VIP Level 2 ");

}

}

if (listitem == 2)

{

if AccInfo[playerid][hours] >= 60)

{

AccInfo[playerid][pVip] = 3;

AccInfo[playerid][hours] = 60;

}

else

{

SendClienMessage(playerid,green,"You Don't Have 60 Hours for Buy VIP Level 3 ");

}

}

}

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

{

dcmd(buyvip,6,cmdtext);

return 1;

}

cam atat

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

In loc de linia asta:

{FFAF00} --> {FF0000} 40 Hours\n{FFFFFF}VIP Level 3 {FFAF00} --> {FF0000}60 Hours","Select","Cancel);

Baga asta:

{FFAF00} --> {FF0000} 40 Hours\n{FFFFFF}VIP Level 3 {FFAF00} --> {FF0000}60 Hours","Select","Cancel");

Asta ar trebui sa rezolve eroarea cu undefined symbol Cancel, iar pentru bvip trebuie sa-l definesti undeva la inceput: #define bvip 1

Sper ca am fost de ajutor

BannerZdupp.png

Link to comment
Share on other sites

acuma mio aparut asta C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : error 017: undefined symbol "AccInfo"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : warning 215: expression has no effect

C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : error 001: expected token: ";", but found "]"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

am rezolvat cu acc info si bvip dar cu astea ce fac ??? C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : warning 215: expression has no effect

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 001: expected token: ";", but found "]"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

am facut si C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : warning 215: expression has no effect

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 001: expected token: ";", but found "]"

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zero

C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.