Ne radi mi Promoter Referral sistem

Započeo Aky, Mart 02, 2019, 18:10:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Aky

*

[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)");
   if(PlayerInfo[playerid][pPromoter]) return SendClientMessage(playerid, -1, "Error");
   if(PlayerInfo[playerid][pUkucaoReff]) return SendClientMessage(playerid, -1, "Error");
   foreach(new i : Player)
   {
      if(reff == PlayerInfo[pReferral])[/pawn]
~ 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 ~


@just_Purda  @Deken  @LoOdaK  @BaÅ¡ovski  @MEDO  @--Lood--  @nikisb

Evo da vas pitam , zasluzuje li ovaj lik ban , 5postova , svi pogresni formular , svaki put mu receno , on opet...
Poslednja Izmena: Mart 02, 2019, 18:23:42 POSLE PODNE od Mister Naithan




Give Honor To The One Who Deserve It





Aky

*

pa u cemu pogrijesim reci mi pls da znam da vise ne grijesim
~ 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:24:30 POSLE PODNE
pa u cemu pogrijesim reci mi pls da znam da vise ne grijesim

http://balkan-samp.com/forum/index.php?topic=120099.0 !!!!!!!

Danas sam ti na 2Posta stavio LINK . . .
Poslednja Izmena: Mart 02, 2019, 18:27:27 POSLE PODNE od Mister Naithan




Give Honor To The One Who Deserve It





Aky

*

po 3 put citam i ne kontam  u cemu sam pogrijesio napisi mi TOCNO U CEMU GRIJESIM
MOLIM TE AKO ZNAS RECI MI MOLIM TE
~ 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:29:53 POSLE PODNE
po 3 put citam i ne kontam  u cemu sam pogrijesio napisi mi TOCNO U CEMU GRIJESIM
MOLIM TE AKO ZNAS RECI MI MOLIM TE

Procitaj jos jedno 10puta , pogledaj dobro temu , mozda i shvatis . .  .  ::) ??? :( :-\




Give Honor To The One Who Deserve It





Aky

*

Mislim da sam skuzio u cemu je fora ako jesam odgovori dal je tocno il nije
Trebam imati ovaj forumular

Problem(error/warning): error 021: symbol already defined: "primjer"
Dio skripte:
~ 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 ~


Jeste, postavi po formularu i rijesice ti se problem..

Aky

*

HVALA VAM!!!!!
NAPOKON CIJELI DAN DOBIVAM DA JE POGRESNO I EVO HVALA  VAM NAPOKON ZNAM STA MORAM NAPRAVIT
~ 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 ~


Jao majko mila
dete ostavi se sampa molim te...
prvo
formular ti je sve ono
a ne symbol already defined primer

i da @Mister Naithan  zasluzuje

Zakljucaj temu da se ne cima Basovski. . .




Give Honor To The One Who Deserve It