multisecret2000 Posted April 20, 2013 Report Share Posted April 20, 2013 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 asteaC:\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 zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(20) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors.Uitati si scriptu #include < dcmd >dcmd_buyvip(playerid,params[]){#pragma unused paramsShowPlayerDialog(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 More sharing options...
infinity1 Posted April 20, 2013 Report Share Posted April 20, 2013 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 1Sper ca am fost de ajutor Link to comment Share on other sites More sharing options...
multisecret2000 Posted April 20, 2013 Author Report Share Posted April 20, 2013 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 effectC:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : error 001: expected token: ";", but found "]"C:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : error 029: invalid expression, assumed zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(37) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors. Link to comment Share on other sites More sharing options...
multisecret2000 Posted April 20, 2013 Author Report Share Posted April 20, 2013 am rezolvat cu acc info si bvip dar cu astea ce fac ??? C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : warning 215: expression has no effectC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 001: expected token: ";", but found "]"C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors. Link to comment Share on other sites More sharing options...
PawnFox Posted April 21, 2013 Report Share Posted April 21, 2013 Care e linia 38 ? 94.23.120.101:7778 Link to comment Share on other sites More sharing options...
multisecret2000 Posted April 21, 2013 Author Report Share Posted April 21, 2013 Dai Click pe imagine so vezi mai mare Link to comment Share on other sites More sharing options...
DarkyTheAngel Posted April 21, 2013 Report Share Posted April 21, 2013 Schimba:if AccInfo [ playerid ] [ hours ] >= 20 )Cu asta:if ( AccInfo [ playerid ] [ hours ] >= 20 )Si fa asa si la celelalte. Link to comment Share on other sites More sharing options...
multisecret2000 Posted April 21, 2013 Author Report Share Posted April 21, 2013 am facut si C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : warning 215: expression has no effectC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 001: expected token: ";", but found "]"C:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : error 029: invalid expression, assumed zeroC:\Users\Ionut\Desktop\ladmin4v2.pwn(38) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors. Link to comment Share on other sites More sharing options...
[Funky]Anakin Posted April 21, 2013 Report Share Posted April 21, 2013 AccInfo => PlayerInfo .Da-mi Y!M Sa te ajut xd Link to comment Share on other sites More sharing options...
multisecret2000 Posted April 21, 2013 Author Report Share Posted April 21, 2013 <nu se lasa id-uri> Y!M exact asa Citeste Regulamentul.Cu drag Gireada Link to comment Share on other sites More sharing options...
Question
multisecret2000
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