/local -
dannyk0ed - 25.03.2012
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(736) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(739) : error 055: start of function body without function header
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(740) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(741) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(746) : error 055: start of function body without function header
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(747) : error 010: invalid function or declaration
pawn Код:
}
if(strcmp(cmd, "/l", true) == 0)
{
new text[128],message[256],sender[MAX_PLAYER_NAME];
{
if(sscanf(params,"s",text)) SendClientMessage(playerid, COLOR_RED, "/l(ocal) <text>");
else
{
GetPlayerName(playerid,sender,sizeof(sender));
format(message,sizeof(message),"%s(%d) says: %s",sender,playerid,text);
ProxDetector(10.0, playerid,message,COLOR_GREY);
{
return 1;
}
Re: /local -
Bogdan1992 - 25.03.2012
pawn Код:
if(strcmp(cmd, "/l", true) == 0)
{
new text[128],message[256],sender[MAX_PLAYER_NAME];
if(sscanf(params,"s",text)) return SendClientMessage(playerid, COLOR_RED, "/l(ocal) <text>");
GetPlayerName(playerid,sender,sizeof(sender));
format(message,sizeof(message),"%s(%d) says: %s",sender,playerid,text);
ProxDetector(10.0, playerid,message,COLOR_GREY);
return 1;
}
Re: /local -
dannyk0ed - 25.03.2012
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(736) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(739) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(743) : error 010: invalid function or declaration
Re: /local -
Bogdan1992 - 25.03.2012
pawn Код:
if(strcmp(cmdtext, "/l", true) == 0)
{
new text[128],message[256],sender[MAX_PLAYER_NAME];
if(sscanf(cmdtext,"s",text)) return SendClientMessage(playerid, COLOR_RED, "/l(ocal) <text>");
GetPlayerName(playerid,sender,sizeof(sender));
format(message,sizeof(message),"%s(%d) says: %s",sender,playerid,text);
ProxDetector(10.0, playerid,message,COLOR_GREY);
return 1;
}
Next time show me where u have the errors.
Re: /local -
dannyk0ed - 25.03.2012
pawn Код:
if(strcmp(cmdtext, "/l", true) == 0)//737
{
new text[128],message[256],sender[MAX_PLAYER_NAME];
if(sscanf(cmdtext,"s",text)) return SendClientMessage(playerid, COLOR_RED, "/l(ocal) <text>");//740
GetPlayerName(playerid,sender,sizeof(sender));
format(message,sizeof(message),"%s(%d) says: %s",sender,playerid,text);
ProxDetector(10.0, playerid,message,COLOR_GREY);
return 1;//744
}
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(737) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(740) : error 010: invalid function or declaration
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(744) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Re: /local -
Bogdan1992 - 25.03.2012
some me your OnPlayerCommandText
Re: /local -
dannyk0ed - 25.03.2012
pawn Код:
public OnPlayerCommandText
(playerid, cmdtext
[]){ if(strcmp(cmdtext,
"/updates", true
) == 0) { SendClientMessage
(playerid,COLOR_GREEN,
"[NEW]Updates");
SendClientMessage
(playerid,COLOR_GREEN,
"We are still working on this Server from scratch");
SendClientMessage
(playerid,COLOR_GREEN,
"Will add FreeCops");
SendClientMessage
(playerid,COLOR_GREEN,
"/givegun has been rank highered because of abuse");
SendClientMessage
(playerid,COLOR_GREEN,
"Contact me at Dannyk0ed@hotmail.com or dannyk0ed on skype");
SendClientMessage
(playerid,COLOR_GREEN,
"We are currently .2 percent Done with server. ");
return true;
} return false;
} if(strcmp(cmdtext,
"/l", true
) == 0)//737 { new text
[128],message
[256],sender
[MAX_PLAYER_NAME
];
if(sscanf
(cmdtext,
"s",text
)) return SendClientMessage
(playerid, COLOR_RED,
"/l(ocal) <text>");
//740 GetPlayerName
(playerid,sender,
sizeof(sender
));
format(message,
sizeof(message
),
"%s(%d) says: %s",sender,playerid,text
);
ProxDetector
(10.0, playerid,message,COLOR_GREY
);
return 1;
//744}
Re: /local -
Bogdan1992 - 25.03.2012
pawn Код:
public OnPlayerCommandText
(playerid, cmdtext
[]){ if(strcmp(cmdtext,
"/updates", true
) == 0) { SendClientMessage
(playerid,COLOR_GREEN,
"[NEW]Updates");
SendClientMessage
(playerid,COLOR_GREEN,
"We are still working on this Server from scratch");
SendClientMessage
(playerid,COLOR_GREEN,
"Will add FreeCops");
SendClientMessage
(playerid,COLOR_GREEN,
"/givegun has been rank highered because of abuse");
SendClientMessage
(playerid,COLOR_GREEN,
"Contact me at Dannyk0ed@hotmail.com or dannyk0ed on skype");
SendClientMessage
(playerid,COLOR_GREEN,
"We are currently .2 percent Done with server. ");
return 1;
} if(strcmp(cmdtext,
"/l", true
) == 0)//737 { new text
[128],message
[256],sender
[MAX_PLAYER_NAME
];
if(sscanf
(cmdtext,
"s",text
)) return SendClientMessage
(playerid, COLOR_RED,
"/l(ocal) <text>");
//740 GetPlayerName
(playerid,sender,
sizeof(sender
));
format(message,
sizeof(message
),
"%s(%d) says: %s",sender,playerid,text
);
ProxDetector
(10.0, playerid,message,COLOR_GREY
);
return 1;
//744 } return 0;
}
Re: /local -
dannyk0ed - 25.03.2012
Thanks +! rep