Pomoc braco hitno mi je

Započeo G0Bl1N, Septembar 04, 2022, 02:31:52 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

warning 216: nested comment
error 017: undefined symbol "GiftInfo"
error 036: empty statement
error 017: undefined symbol "weed"
fatal error 107: too many error messages on one line

SKRIPTA:

stock CreateGift(interior, world, Float:Xx, Float:Yy, Float:Zz)
{
    for(new weed = 0; weed < sizeof(GiftInfo); weed++)
    {
      if(GiftInfo[weed][giPlanted] == 0 && GiftInfo[weed][giTime] == 0)
      {
         new rands = random(5)+1;
         if(rands == 1)
         {
               GiftInfo[weed][giObject] = CreateDynamicObject(19054, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 2)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19055, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 3)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19056, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 4)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19057, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 5)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19058, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         GiftInfo[weed][giX] = Xx;
          GiftInfo[weed][giY] = Yy;
          GiftInfo[weed][giZ] = Zz;
          GiftInfo[weed][giPlanted] = 1;
          GiftInfo[weed][giTime] = 0;
          48122: GiftText[weed] = CreateDynamic3DTextLabel("= [ POKLON IZNENADJENJA ] =\n{FFFFFF}/uzmipoklon", BELA, Xx,Yy,Zz, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, world, interior, -1, 5.0);
          return 1;
      }
   }
   return 0;
}

CMD:napravipoklon(playerid, params[]) {
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"MC:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, -1, ""CRVENA"Samo Admini (AL 3+)!");
    new whore = GetPlayerInterior(playerid);
   new suckdick = GetPlayerVirtualWorld(playerid);
   new Float:x, Float:y, Float:z;
   new string[500];
   GetPlayerPos(playerid, x, y, z);
   CreateGift(whore, suckdick, x, y, z);
   ukupnopaketica++;
   GetPlayerLocation(playerid)
   format(string, 128, "Novi paketic iznenadjenja je napravljen u blizini: {00D900}%s", GetPlayerLocation(playerid));
   SCMTA(-1, string);
   format(string, 128, "Ukupno preostalo paketica: {00D900}%d", ukupnopaketica);
   SCMTA(-1, string);
   return 1;
}
Pomoc braco bitno mi je ovo,srdacan pozdrav.
Poslednja Izmena: Septembar 04, 2022, 02:34:37 PRE PODNE od Baba_Castello

Citat: Baba_Castello poslato Septembar 04, 2022, 02:31:52 PRE PODNE
warning 216: nested comment
error 017: undefined symbol "GiftInfo"
error 036: empty statement
error 017: undefined symbol "weed"
fatal error 107: too many error messages on one line

SKRIPTA:

stock CreateGift(interior, world, Float:Xx, Float:Yy, Float:Zz)
{
    for(new weed = 0; weed < sizeof(GiftInfo); weed++)
    {
      if(GiftInfo[weed][giPlanted] == 0 && GiftInfo[weed][giTime] == 0)
      {
         new rands = random(5)+1;
         if(rands == 1)
         {
               GiftInfo[weed][giObject] = CreateDynamicObject(19054, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 2)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19055, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 3)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19056, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 4)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19057, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         if(rands == 5)
         {
             GiftInfo[weed][giObject] = CreateDynamicObject(19058, Xx,Yy,Zz-0.5, 0, 0, 0,world, interior, -1, 50);
         }
         GiftInfo[weed][giX] = Xx;
          GiftInfo[weed][giY] = Yy;
          GiftInfo[weed][giZ] = Zz;
          GiftInfo[weed][giPlanted] = 1;
          GiftInfo[weed][giTime] = 0;
          48122: GiftText[weed] = CreateDynamic3DTextLabel("= [ POKLON IZNENADJENJA ] =\n{FFFFFF}/uzmipoklon", BELA, Xx,Yy,Zz, 5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, world, interior, -1, 5.0);
          return 1;
      }
   }
   return 0;
}

CMD:napravipoklon(playerid, params[]) {
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"MC:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, -1, ""CRVENA"Samo Admini (AL 3+)!");
    new whore = GetPlayerInterior(playerid);
   new suckdick = GetPlayerVirtualWorld(playerid);
   new Float:x, Float:y, Float:z;
   new string[500];
   GetPlayerPos(playerid, x, y, z);
   CreateGift(whore, suckdick, x, y, z);
   ukupnopaketica++;
   GetPlayerLocation(playerid)
   format(string, 128, "Novi paketic iznenadjenja je napravljen u blizini: {00D900}%s", GetPlayerLocation(playerid));
   SCMTA(-1, string);
   format(string, 128, "Ukupno preostalo paketica: {00D900}%d", ukupnopaketica);
   SCMTA(-1, string);
   return 1;
}
Pomoc braco bitno mi je ovo,srdacan pozdrav.
Postavi lepo po formularu i posalji u pawno codeu