[POMOC] Erori

Započeo [ED] Marac, Oktobar 11, 2011, 17:25:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema: Erori -.-
Dio skripte:  for(new i = 0; i < sizeof(HouseInfo); i++)
Neke slike/video za lakse dobivanje pomoci(neobavezno): -

C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(33084) : error 017: undefined symbol "HouseInfo"
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(33084) : error 036: empty statement
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(33084) : error 017: undefined symbol "i"
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(33084) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



dodaj     new HouseInfo;
Respect to:
[BD]Gagi


na vrh varijable u koju si dodavo taj code
Respect to:
[BD]Gagi

CMD:edit(playerid, params[])
    {
new HouseInfo;
new idx;
    if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Niste ovlasteni da koristite tu komandu !");
return 1;
}
new x_job[256];
x_job = strtok(params, idx);
if(!strlen(x_job)) {
SendClientMessage(playerid, COLOR_WHITE, "|__________________ Edit __________________|");
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /edit [name] [ammount] (Used for Houses and Businesses)");
SendClientMessage(playerid, COLOR_GREY, "Available names: Level, Price, Funds, Products");
SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
return 1;
}
temp = strtok(params, idx);
if(!strlen(temp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /edit [name] [ammount]");
return 1;
}
new proplev = strval(temp);
        //if(strcmp(x_job,"car",true) == 0)
        for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]));
{
format(string, sizeof(string), "Kuca: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
    if(strcmp(x_job,"level",true) == 0)
    {
HouseInfo[i][hLevel] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
    {
                HouseInfo[i][hValue] = proplev;
}
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
format(string, sizeof(string), "Biz: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
    if(strcmp(x_job,"level",true) == 0)
    {
BizzInfo[i][bLevelNeeded] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
    {
BizzInfo[i][bBuyPrice] = proplev;
}
else if(strcmp(x_job,"funds",true) == 0)
    {
BizzInfo[i][bTill] = proplev;
}
else if(strcmp(x_job,"products",true) == 0)
    {
BizzInfo[i][bProducts] = proplev;
}
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(3, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
format(string, sizeof(string), "SBiz: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
    if(strcmp(x_job,"level",true) == 0)
    {
SBizzInfo[i][sbLevelNeeded] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
    {
SBizzInfo[i][sbBuyPrice] = proplev;
}
else if(strcmp(x_job,"funds",true) == 0)
    {
SBizzInfo[i][sbTill] = proplev;
}
else if(strcmp(x_job,"products",true) == 0)
    {
SBizzInfo[i][sbProducts] = proplev;
}
}
}
}
format(string, sizeof(string), "Podesili ste: %s.", x_job);
SendClientMessage(playerid, COLOR_WHITE, string);
OnPropUpdate();
}
return 1;
}



Evo imam ovako i pokazuje mi eror na ovoj liniji 31436
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]));

new HouseInfo; dodaj na vrh moda a taj new HouseInfo; iz komande izbrisi pa compile pa daj errore ako ih daje
Respect to:
[BD]Gagi

C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(31581) : error 028: invalid subscript (not an array or too many subscripts): "HouseInfo"
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(31581) : warning 215: expression has no effect
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(31581) : error 001: expected token: ";", but found "]"
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(31581) : error 029: invalid expression, assumed zero
C:\Users\MARIN I MATEJ\Desktop\New folder\gamemodes\RLRP.pwn(31581) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


evo to su erori nakon ovog tvojeg

daj mi liniju na kojoj baca errore
Respect to:
[BD]Gagi