Error while compiling
#1

Код:
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
Reply
#2

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
Reply
#3

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
Reply
#4

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(stringsizeof(string), " Lider OrgJedan %s kaze: %s"ImeIgraca(playerid), params[0] );
return 
PorukaOrgJedan(0xFF0000AA,string);
}
else
{
if( 
GetPVarInt(playerid,"Clan") == 
{
new 
string[89]; format(stringsizeof(string), " Clan OrgJedan %s kaze: %s"ImeIgraca(playerid), params[0] );
return 
PorukaOrgJedan(0xFF0000AA,string);
}
else  return 
SendClientMessage(playerid,0xFF0000AA,"Niste clan OrgJedan!");
}
}
return 
1;

Reply
#5

now error undefined simbol porukaorgjedan
Reply
#6

you might have forgot to declare it.More likely its a function.
Reply
#7

To put #define PorukaOrgJedan ? or stock PorukaOrgJedan
Reply
#8

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
Reply
#9

can you give more explanation
Reply
#10

fix with public rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)