SA-MP Forums Archive
Help ERRORS REPP + + - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help ERRORS REPP + + (/showthread.php?tid=574889)



Help ERRORS REPP + + - Vizi - 21.05.2015

I'm getting this ERRORS.How to fix them ? Help.





Код:
{
SendClientMessage(k, COLOR_WHITE, "|__________________ Hitman Agencija Vesti __________________|");
SendClientMessage(k, COLOR_DBLUE, "*** Doagja poraka: Metata stana dostapna. ***");
format(string, sizeof(string),"Osoba: %s ID: %d Cena: $%d", ImeIgraca(i), i, CenaZaUbistvo(i));
SendClientMessage(k, COLOR_DBLUE, string);
SendClientMessage(k, COLOR_YELLOW, "Koristete /givehit za da dodelite hit na nekogo");
SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
}
Line 3072
Код:
format(string, sizeof(string),"Osoba: %s ID: %d Cena: $%d", ImeIgraca(i), i, CenaZaUbistvo(i);



Re: Help ERRORS REPP + + - MikE1990 - 21.05.2015

try to change line 3072 to this:
Код:
format(string, sizeof(string),"Osoba: %s ID: %d Cena: $%d", ImeIgraca(i), i, CenaZaUbistvo(i));



Re: Help ERRORS REPP + + - Vizi - 21.05.2015

Quote:
Originally Posted by MikE1990
Посмотреть сообщение
try to change line 3072 to this:
Код:
format(string, sizeof(string),"Osoba: %s ID: %d Cena: $%d", ImeIgraca(i), i, CenaZaUbistvo(i));
Nope.. Same Errors


Re: Help ERRORS REPP + + - Vizi - 21.05.2015

BUMB


Re: Help ERRORS REPP + + - MikE1990 - 21.05.2015

You still have errors on line 3072 ?


Re: Help ERRORS REPP + + - Affan - 21.05.2015

PHP код:
format(stringsizeof(string),"Osoba: %s ID: %d Cena: $%d"ImeIgraca(i), iCenaZaUbistvo(i); 
Could you show where you got the "i" variable?


Re: Help ERRORS REPP + + - Vizi - 22.05.2015

Quote:
Originally Posted by MikE1990
Посмотреть сообщение
You still have errors on line 3072 ?
YES!!



Quote:
Originally Posted by Affan
Посмотреть сообщение
PHP код:
format(stringsizeof(string),"Osoba: %s ID: %d Cena: $%d"ImeIgraca(i), iCenaZaUbistvo(i); 
Could you show where you got the "i" variable?
I don't understand.


Re: Help ERRORS REPP + + - Konstantinos - 22.05.2015

invalid function call, not a valid address

Means that either one of them or both are variables (arrays) and not functions (so it'd be [i] instead of (i)):
ImeIgraca(i)
CenaZaUbistvo(i)

How have you defined them?


Re: Help ERRORS REPP + + - Vizi - 22.05.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
invalid function call, not a valid address

Means that either one of them or both are variables (arrays) and not functions (so it'd be [i] instead of (i)):
ImeIgraca(i)
CenaZaUbistvo(i)

How have you defined them?
How to define them. I'm new.


Re: Help ERRORS REPP + + - Crystallize - 22.05.2015

Quote:
Originally Posted by Vizi
Посмотреть сообщение
How to define them. I'm new.
#define ImeIgraca[MAX_PLAYERS] like this
Correct me if im wrong