Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Schwarz poslato Maj 06, 2013, 18:47:55 POSLE PODNE

Naslov: [Pomoc] Erors
Poruka od: Schwarz poslato Maj 06, 2013, 18:47:55 POSLE PODNE
Skripta koju koristim: if(GetPlayerArmour(playerid)); //will check if player is using Jetpack
    {
        if(Pancir[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s [ID %s] mozebi koristi Armor Hack proverete go!!",name,playerid);
                ABroadCast(COLOR_YELLOW,string);
                TBroadCast(COLOR_YELLOW,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else Pancir[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
    {
        if(JetPack[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
                SendClientMessageToAll(COLOR_GREEN,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else JetPack[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

        return 1;
}

Detaljan opis problema: Daje mi ova 2 erora na prvu i na zadnju liniju D:\Documents and Settings\Miki\Desktop\gm\gamemodes\rp.pwn(18533) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Miki\Desktop\gm\gamemodes\rp.pwn(18520) : error 036: empty statement

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Erors
Poruka od: pax95 poslato Maj 06, 2013, 19:07:52 POSLE PODNE
if(GetPlayerArmour(playerid)) //will check if player is using Jetpack
    {
        if(Pancir[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
                ABroadCast(COLOR_YELLOW,string);
                TBroadCast(COLOR_YELLOW,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else Pancir[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
    {
        if(JetPack[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
                SendClientMessageToAll(COLOR_GREEN,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else JetPack[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

        return 1;
}

Probaj pa javi, ako ne valja obelezi mi linije gde su errori ovako moram da ciljam
Naslov: Odg: [Pomoc] Erors
Poruka od: Schwarz poslato Maj 06, 2013, 20:57:51 POSLE PODNE
Sad je dobro ne daje erore ali ne mi ispisuje tekst kad neko stavi armor a ja imam napraveno preku varijablu ako se ne aktivira varajabla da ispisuje tekst adminima i testerima ali  mene mi ne ispisuje a na isti princip imam uradeno i za jetpack i radi a za armor nece
Naslov: Odg: [Pomoc] Erors
Poruka od: Blaeks poslato Maj 06, 2013, 23:02:13 POSLE PODNE
pa koliko ja vidim ovde ti je gagi ispravio jetpack, daj taj deo za armor
Naslov: Odg: [Pomoc] Erors
Poruka od: Schwarz poslato Maj 06, 2013, 23:05:28 POSLE PODNE
Pa eto ti ga prvi del sta je gore  :D
A ovo za jetpack sam po gresku stavio  ;D
Naslov: Odg: [Pomoc] Erors
Poruka od: Blaeks poslato Maj 06, 2013, 23:17:13 POSLE PODNE
a nisam vido, stavi ovako if(GetPlayerArmour(playerid)) //will check if player is using Jetpack
    {
        if(Pancir[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
                ABroadCast(COLOR_YELLOW,string);
                format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
                TBroadCast(COLOR_YELLOW,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else Pancir[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
    {
        if(JetPack[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
                SendClientMessageToAll(COLOR_GREEN,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else JetPack[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

        return 1;
}
Naslov: Odg: [Pomoc] Erors
Poruka od: Schwarz poslato Maj 06, 2013, 23:24:31 POSLE PODNE
Opet mi ne ispisuje kad koristim armor hack misim da sam napravio gresnu proverku molim te proveri lepo
Naslov: Odg: [Pomoc] Erors
Poruka od: Blaeks poslato Maj 06, 2013, 23:32:04 POSLE PODNE

new Float:PlayersArmor[MAX_PLAYERS];
GetPlayerArmour(i, PlayersArmor[i]);
if(PlayersArmor[playerid] > 99)
    {
        if(Pancir[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
                ABroadCast(COLOR_YELLOW,string);
                format(string,sizeof(string),"LG: %s [ID %d] mozebi koristi Armor Hack proverete go!!",name,playerid);
                TBroadCast(COLOR_YELLOW,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else Pancir[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) //will check if player is using Jetpack
    {
        if(JetPack[playerid] == 0) //if global variable JetPack is 0
        {
                new string[128],name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
                format(string,sizeof(string),"LG: %s mozebi koristi Jetpack Hack proverete go.",name);
                SendClientMessageToAll(COLOR_GREEN,string);
        }
        else //if global variable JetPack is 1
        return 1; //will return 1;
    }
    else JetPack[playerid] = 0; //if player leaves the JetPack using Enter/F it will set the Global Variable JetPack to 0 again to avoid the problem in our command /jetpack

        return 1;
}
Naslov: Odg: [Pomoc] Erors
Poruka od: Schwarz poslato Maj 06, 2013, 23:42:45 POSLE PODNE
Hvala puno oko pomoci majstore moze da lockas   :)