/local
#1

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;
}
Reply
#2

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

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

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.
Reply
#5

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.
Reply
#6

some me your OnPlayerCommandText
Reply
#7

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
}
Reply
#8

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

Thanks +! rep
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)