Error/Warrning/Missing plugin

Započeo Aky, Mart 02, 2019, 18:48:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Aky

*

Problem(error/warning): Rade mi samo komande: /reff i /checkreff
Dio skripte:   [pawn]
#include                                                  "a_samp"
#include                                                  "izcmd"
#include                                                 "foreach"
#include                                                 "sscanf2"

enum playerInfo
{
   bool:pPromoter,
   pReferral,
   pUkucanihReferrala,
   bool:pUkucaoReff
}
new PlayerInfo[MAX_PLAYERS][playerInfo]; //ko hoce zbog cuvanja/citanja u enum je odma stavljeno

main(){}

CMD:mprom(playerid, params[])
{
   if(IsPlayerAdmin(playerid))
   {
       new id, string[70], reff = random(999999);
       if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "/mprom (id/ime_prezime)");
       if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Error");
       if(PlayerInfo[id][pPromoter] == false)
       {
          PlayerInfo[id][pPromoter] = true;
          format(string, sizeof(string), "Igracu %s(%d) si dao promotera.", GetName(id), id);
          SendClientMessage(playerid, -1, string);
          format(string, sizeof(string), "Admin %s(%d) ti je dao promotera, reff %d", GetName(playerid), playerid, reff);
          SendClientMessage(id, -1, string);
         PlayerInfo[id][pReferral] = reff;
         PlayerInfo[id][pUkucanihReferrala] = 0;
      }
      else
      {
          PlayerInfo[id][pPromoter] = false;
          format(string, sizeof(string), "Igracu %s(%d) si skinuo promotera.", GetName(id), id);
          SendClientMessage(playerid, -1, string);
          format(string, sizeof(string), "Admin %s(%d) ti je skinuo promotera", GetName(playerid), playerid);
          SendClientMessage(id, -1, string);
         PlayerInfo[id][pReferral] = 0;
         PlayerInfo[id][pUkucanihReferrala] = 0;
      }
   }
   return 1;
}

CMD:reff(playerid, params[])
{
   new reff, string[65];
   if(sscanf(params, "i", reff)) return SendClientMessage(playerid, -1, "/reff (kod)");[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): ////////
Slika/video ingame problema(obavezno ako je ingame problem): //////////
Poslednja Izmena: Mart 02, 2019, 18:52:46 POSLE PODNE od Aky
~ Phototshop | Developer (Beginer) |Mapper ~
~ GFX Design ~


~ Radovi ~
~ Dodat cu kad mi se bude dalo :D ~

~ SA-MP Player - Since 2013 ~
~ MAPPER - Since 2017 ~
~ PHOTOSHOP - Since 2017 ~



Respect for : Galardo


~ Contact : ~
~ Insta: Akxy16 ~


Pola formulara , napredujes polako...

Nego kako da znam koji ti je problem ? Objasni mi ? @Deken znas li ti ?  8)




Give Honor To The One Who Deserve It






Aky

*

ne samo mi ne rade komande
~ Phototshop | Developer (Beginer) |Mapper ~
~ GFX Design ~


~ Radovi ~
~ Dodat cu kad mi se bude dalo :D ~

~ SA-MP Player - Since 2013 ~
~ MAPPER - Since 2017 ~
~ PHOTOSHOP - Since 2017 ~



Respect for : Galardo


~ Contact : ~
~ Insta: Akxy16 ~


Citat: Aky poslato Mart 02, 2019, 18:53:07 POSLE PODNE
ne samo mi ne rade komande

Sta ti izadje kada kompajlas skriptu ?




Give Honor To The One Who Deserve It





 Jesi ovo sve stavio pod enum pInfo

    [pawn]bool:pPromoter,
    pReferral,
    pUkucanihReferrala,
    bool:pUkucaoReff[/pawn]

Aky

*

aaa nisam hvala evo dodat cu pa cu testirat
~ Phototshop | Developer (Beginer) |Mapper ~
~ GFX Design ~


~ Radovi ~
~ Dodat cu kad mi se bude dalo :D ~

~ SA-MP Player - Since 2013 ~
~ MAPPER - Since 2017 ~
~ PHOTOSHOP - Since 2017 ~



Respect for : Galardo


~ Contact : ~
~ Insta: Akxy16 ~


Citat: Aky poslato Mart 02, 2019, 19:01:26 POSLE PODNE
aaa nisam hvala evo dodat cu pa cu testirat

Javi mi se PP




Give Honor To The One Who Deserve It





@Aky , ne rade ti mozda jer se nisi prijavio kao RCON Admin, gledam ti pod komandama imas IsPlayerAdmin, ako nisi, udjes u server.cfg i vidis koji ti je rconpass, udjes u igru i kucas /rcon login password ;)
• Website: www.vasic.dev
Web Development & Cyber Security

Aky

*

nece ne radi
~ Phototshop | Developer (Beginer) |Mapper ~
~ GFX Design ~


~ Radovi ~
~ Dodat cu kad mi se bude dalo :D ~

~ SA-MP Player - Since 2013 ~
~ MAPPER - Since 2017 ~
~ PHOTOSHOP - Since 2017 ~



Respect for : Galardo


~ Contact : ~
~ Insta: Akxy16 ~


jesi probao da se ulogujes kao rcon?
• Website: www.vasic.dev
Web Development & Cyber Security

ukoliko ni u tom slucaju ne radi komanda, skini ovaj ZCMD inc: http://www.solidfiles.com/d/d20f/
i ubaci ga u includes folder koji se nalazi u Pawno folderu. Udji u skriptu i izbrisi #include "izcmd" i dodaj
[pawn]#include <zcmd>[/pawn] mora biti u redu onda.
• Website: www.vasic.dev
Web Development & Cyber Security

Aky

*

kaze moj skripter da za
#include                  "foreach"
#include                  "sscanf2"
nema plugina
~ Phototshop | Developer (Beginer) |Mapper ~
~ GFX Design ~


~ Radovi ~
~ Dodat cu kad mi se bude dalo :D ~

~ SA-MP Player - Since 2013 ~
~ MAPPER - Since 2017 ~
~ PHOTOSHOP - Since 2017 ~



Respect for : Galardo


~ Contact : ~
~ Insta: Akxy16 ~


ubaci sscanf, a foreach plugin ne postoji, bar kolko ja znam

Citat: Pawno poslato Mart 02, 2019, 21:23:02 POSLE PODNE
ubaci sscanf, a foreach plugin ne postoji, bar kolko ja znam
Mozes PP ?




Give Honor To The One Who Deserve It