FreshCandy Posted November 29, 2018 Report Share Posted November 29, 2018 (edited) Asta e comanda adaugata if (dialogid == BuyVip) { if(response) { if(listitem == 0) { if AccInfo[playerid][hours] >= 1) //Orele care trebuie sa le aiba playerul { AccInfo[playerid][pVip] = 1; //Levelul la VIP AccInfo[playerid][hours] -= 1; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore destule } } if(listitem == 1) { if AccInfo[playerid][hours] >= 20) //Orele pentru a cumpara VIP { AccInfo[playerid][pVip] = 2; //Levelul de VIP AccInfo[playerid][hours] -= 20; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are ore suficiente } } if (listitem == 2) { if AccInfo[playerid][hours] >= 30) //Orele care trebuiesc pentru a cumpara VIP { AccInfo[playerid][pVip] = 3; //Levelul VIP AccInfo[playerid][hours] = 30; } else { SendClientMessage(playerid,green,"Nu ai destule ore pentru a cumpara VIP !"); //Mesajul daca nu are destule ore } } //Sfarsit............................................................................................................... Si eroriile sunt astea C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12932) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12934) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12936) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12938) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12943) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12948) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12950) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12955) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12960) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12962) : error 010: invalid function or declaration C:\Users\Dragos\Desktop\Romania Black Zone Stunt-Zone\gamemodes\RO1.pwn(12967) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 13 Errors. erorile astea sunt la fiecare ''else'' la comanda Edited November 29, 2018 by FreshCandy Quote Link to comment Share on other sites More sharing options...
AlexxAdv Posted November 29, 2018 Report Share Posted November 29, 2018 Si linille nu le zici care sunt? Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 2 minutes ago, AlexxAdv said: Si linille nu le zici care sunt? 12932: if (dialogid == BuyVip) 12934: if(response) 12936: if(listitem == 0) 12938: if AccInfo[playerid][hours] >= 1) //Orele care trebuie sa le aiba playerul 12943: } else { Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 4 minutes ago, AlexxAdv said: Si linille nu le zici care sunt? sau cum ti le spun Quote Link to comment Share on other sites More sharing options...
AlexxAdv Posted November 29, 2018 Report Share Posted November 29, 2018 12932: presupun ca defapt este if(dialogid == DIALOG_BUYVIP) in loc de ce ai tu acolo. Iar la alea cu if AccInfo iti lipseste paranteza rotunda, adica, if(AccInfo si continuarea. Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 3 minutes ago, AlexxAdv said: 12932: presupun ca defapt este if(dialogid == DIALOG_BUYVIP) in loc de ce ai tu acolo. Iar la alea cu if AccInfo iti lipseste paranteza rotunda, adica, if(AccInfo si continuarea. am modificat. tot la fel apare Quote Link to comment Share on other sites More sharing options...
AlexxAdv Posted November 29, 2018 Report Share Posted November 29, 2018 Verifica daca functiile sunt definite cum trebuiesc in gm Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 accinfo imi apare decat in comanda altundeva nu pvip la fel hours la fel Quote Link to comment Share on other sites More sharing options...
AlexxAdv Posted November 29, 2018 Report Share Posted November 29, 2018 Vezi la ce enum ai pVIP si vezi la ce enum este definit AccInfo Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 1 minute ago, AlexxAdv said: Vezi la ce enum ai pVIP si vezi la ce enum este definit AccInfo // Enums new reactionstr[9]; //randomly generated string new reactioninprog; //what status the reactiontest is at new reactionwinnerid; //id of the current reactiontest winner new reactiongap; //timer to restart ReactionTest() new raddon[15] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; // Some new stuff new Reclamtd[][]= pun acolo New pVip New AccInfo sau? Quote Link to comment Share on other sites More sharing options...
FreshCandy Posted November 29, 2018 Author Report Share Posted November 29, 2018 7 minutes ago, AlexxAdv said: Vezi la ce enum ai pVIP si vezi la ce enum este definit AccInfo da-mi tu alta comanda fara zcmd , daca ai Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.