[Pomoc] ID bizza

Započeo [UG]Cile, Novembar 27, 2011, 21:40:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxic edit moj :)
Problem: Nemam komandu kako da saznam ID neke kuce ili bizza
E ovako mene treba u ZCMD znaci
CMD: /whatbiz
CMD: /whathouse

ja imam obicno jel mi moze ko dat u ZCMD

if(strcmp(cmd, "/whatbiz", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
          if(PlayerInfo[playerid][pAdmin] != 1337 && PlayerInfo[playerid][pAdmin] != 1338)
         {
            return 1;
         }
         for(new i = 0; i < sizeof(BizzInfo); i++)
         {
            if (PlayerToPoint(3, playerid,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]))
            {
               format(string, sizeof(string), "Biz: %d", i);
               SendClientMessage(playerid, COLOR_GRAD2, string);
            }
         }
      }
   }

ovako ti izgleda ...



nevalja, vidi

C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28555) : error 032: array index out of bounds (variable "BizzInfo")
C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28557) : error 017: undefined symbol "string"
C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28557) : error 017: undefined symbol "string"
C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28557) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28557) : fatal error 107: too many error messages on one line



opet jedan error :S

C:\Documents and Settings\Admin\Desktop\Balkan World\gamemodes\BW.pwn(28556) : error 032: array index out of bounds (variable "BizzInfo")



vanila on koristi strcmp



Kad bih ponovo mogao da biram...al' nemozes da biras.
Zajebes jedan minus i ode ceo zadatak u kurac. Ceo fazon brate, nema druge sanse.