Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Codaa poslato Septembar 04, 2019, 14:21:11 POSLE PODNE

Naslov: Pomoc u vezi errora i warringa
Poruka od: Codaa poslato Septembar 04, 2019, 14:21:11 POSLE PODNE
Problem(error/warning): Imam errore i warringe ovo su
Deo skripte:             for(new g = 0; g <= MAX_GARAGES; g++)
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem):
Invalid expresion assumed zero
Pawno:  for(new g = 0; g <= MAX_GARAGES; g++)

Invalid Function or Declaration
Pawno:                                 if(GarageInfo[g][IntID] = 0) GarageInterior = "{FFFF00}Small";
                                if(GarageInfo[g][IntID] = 2) GarageInterior = "{00FF00}Medium";
                                if(GarageInfo[g][IntID] = 3) GarageInterior = "{00FF00}Medium";
                                if(GarageInfo[g][IntID] = 1) GarageInterior = "{FF0000}Big";
                                GarageInfo[g][Status] = 0;
                                if(GarageInfo[g][Price] == 0) format(string,sizeof(string),"Owner: {FF0000}%s\n{FFFFFF}Price: {00FF00}Free\n{FFFFFF}Status: {00FF00}Unlocked\n{FFFFFF}Interior: %s", dini_Get(Garage, "Owner"), GarageInterior);

expected token: ";", but found "{"
{

expected token: ";", but found "-identifier-"

        new string[256] LoadString[256] GarageInterior[128] GarageLocked[128] GarageOwner[MAX_PLAYER_NAME];

invalid array size (negative, zero or out of bounds)

new GarageInfo[MAX_GARAGES][gInfo];

function heading differs from prototype


             
Naslov: Odg: Pomoc u vezi errora i warringa
Poruka od: Osamu Dazai poslato Septembar 04, 2019, 14:38:41 POSLE PODNE
 u PAWN jeziku ne postoji kao upit...

== umesto = u if-u