- 0
Cerere Ajutor /BuyVip
-
Similar Content
-
- 0 replies
- 166 views
-
- 0 replies
- 76 views
-
ajutor urgent
By R4zvyy,
- 1 answer
- 360 views
-
- 2 answers
- 139 views
-
- 4 replies
- 111 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
xt3z0ne
Nick:Johnny
Problema:Pai am dat de un /buyvip pe ore si cand pun la public OnDialogResponse numa erori imi da :|
Erori / warnings: [pawn]
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(502) : error 017: undefined symbol "UpdateConfig"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(503) : error 017: undefined symbol "ReadTextDraws"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(522) : error 017: undefined symbol "ShowConfigInConsole"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(547) : error 004: function "SaveTeleport" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(656) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(671) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(691) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(743) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(761) : error 017: undefined symbol "SavePlayerStats"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1027) : error 004: function "MessageToPlayerVIP" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1028) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1038) : error 004: function "MessageToAdmins" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1040) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1069) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1125) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1166) : error 017: undefined symbol "AdvertisementCheck"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1179) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1226) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1247) : error 004: function "SaveIn" is not implemented
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "BuyVip"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 017: undefined symbol "Cancel"
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : error 029: invalid expression, assumed zero
D:\Games\DD SI DM\filterscripts\LuxAdmin.pwn(1576) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
23 Errors.
[/pawn]
Lini/script:
Daca scot asta.
[pawn]
//==============================================================================
if (dialogid == BuyVip)
{
if(response)
{
if(listitem == 0)
{
if AccInfo[playerid][hours] >= 20) //Orele care trebuie sa le aiba playerul
{
AccInfo[playerid][pVip] = 1; //Levelul la VIP
AccInfo[playerid][hours] -= 20;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule
}
}
if(listitem == 1)
{
if AccInfo[playerid][hours] >= 40) //Orele pentru a cumpara VIP
{
AccInfo[playerid][pVip] = 2; //Levelul de VIP
AccInfo[playerid][hours] -= 40;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente
}
}
if (listitem == 2)
{
if AccInfo[playerid][hours] >= 60) //Orele care trebuiesc pentru a cumpara VIP
{
AccInfo[playerid][pVip] = 3; //Levelul VIP
AccInfo[playerid][hours] = 60;
}
else
{
SendClienMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore
}
}
}
[/pawn] nu mai am erori .
Si asta-i comanda.
[pawn]
dcmd_buyvip(playerid,params[]) //Adaugati oriunde in GameMode
{
#pragma unused params
ShowPlayerDialog(playerid, BuyVip, DIALOG_STYLE_LIST,"BuyVip","{FFFFFF}Level 1 {FFAF00} --> {FF0000} 20 Ore\n{FFFFFF}Level 2 {FFAF00} --> {FF0000} 40 Ore\n{FFFFFF}Level 3 {FFAF00} --> {FF0000}60 Ore","Select","Cancel);
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?: nu stiu ce naiba sai fac..
Sunt un retardat
Link to comment
Share on other sites
4 answers to this question
Recommended Posts