Error while compiling -
Dejan12345 - 05.08.2016
Код:
CMD:f(playerid,params[])
{
new tekst [MAX_STRING];
if (sscanf(params, "s[90]", tekst)) SendClientMessage(playerid,0xFF0000AA, "Koristenje: /f [text]");
else{
if( GetPVarInt(playerid,"Lider") == 1) {
new string[89]; format(string, sizeof(string), " Lider OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(0xFF0000AA,string);
}
else
{
if( GetPVarInt(playerid,"Clan") == 1 ) {
new string[89]; format(string, sizeof(string), " Clan OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(0xFF0000AA,string);
}
else return SendClientMessage(playerid,0xFF0000AA,"Niste clan OrgJedan!");
[
ERRORS
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(582) : error 017: undefined symbol "MAX_STRING"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(582) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(582) : error 036: empty statement
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(582) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
help
__________________
Black Angeles Roleplay 4% completed
Tutorials Filterscripts
Re: Error while compiling -
SyS - 05.08.2016
at top of your script and below includes
PHP код:
#define MAX_STRING numerical_value_here
replace numerical_value_here with a number that you want to set as MAX STRING
Re: Error while compiling -
Dejan12345 - 05.08.2016
now 4 errors
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(588) : error 017: undefined symbol "Poruka"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(595) : error 017: undefined symbol "Poruka"
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(599) : error 030: compound statement not closed at the end of file (started at line 592)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
help
Re: Error while compiling -
SyS - 05.08.2016
thats full command? then you have bracket issue.try them...
PHP код:
CMD:f(playerid,params[])
{
new tekst [MAX_STRING];
if (sscanf(params, "s[90]", tekst)) SendClientMessage(playerid,0xFF0000AA, "Koristenje: /f [text]");
else{
if( GetPVarInt(playerid,"Lider") == 1) {
new string[89]; format(string, sizeof(string), " Lider OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(0xFF0000AA,string);
}
else
{
if( GetPVarInt(playerid,"Clan") == 1 )
{
new string[89]; format(string, sizeof(string), " Clan OrgJedan %s kaze: %s", ImeIgraca(playerid), params[0] );
return PorukaOrgJedan(0xFF0000AA,string);
}
else return SendClientMessage(playerid,0xFF0000AA,"Niste clan OrgJedan!");
}
}
return 1;
}
Re: Error while compiling -
Dejan12345 - 05.08.2016
now error undefined simbol porukaorgjedan
Re: Error while compiling -
SyS - 05.08.2016
you might have forgot to declare it.More likely its a function.
Re: Error while compiling -
Dejan12345 - 05.08.2016
To put #define PorukaOrgJedan ? or stock PorukaOrgJedan
Re: Error while compiling -
SyS - 05.08.2016
Quote:
Originally Posted by Dejan12345
To put #define PorukaOrgJedan ? or stock PorukaOrgJedan
|
both will be true depending upon the purpose of this function i wont recommend you to use macro function and also not to use stock declare it with out any key word
PHP код:
PorukaOrgJedan(//params)
{
///definition
}
if you can tell the purpose of this function i will give more explanation
Re: Error while compiling -
Dejan12345 - 05.08.2016
can you give more explanation
Re: Error while compiling -
Dejan12345 - 05.08.2016
fix with public rep+