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