Help errors ["+rep"]
#1

Hello

i have this errors , i am with it 1 hours the fix it ,and i don"t know where :/

Код:
D:\Documents and Settings\Administrateur\Mes documents\Downloads\Nouveau dossier\snr\gamemodes\snr.pwn(23314) : error 010: invalid function or declaration
D:\Documents and Settings\Administrateur\Mes documents\Downloads\Nouveau dossier\snr\gamemodes\snr.pwn(23317) : error 010: invalid function or declaration
D:\Documents and Settings\Administrateur\Mes documents\Downloads\Nouveau dossier\snr\gamemodes\snr.pwn(23319) : error 010: invalid function or declaration
D:\Documents and Settings\Administrateur\Mes documents\Downloads\Nouveau dossier\snr\gamemodes\snr.pwn(29820) : warning 203: symbol is never used: "szMessage"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Line error (22314)
pawn Код:
foreach(Player, i)
line error (22317)
pawn Код:
if(PlayerInfo[i][pAdminLevel] >= 1)
line error (22319)
pawn Код:
if(BigEars[i] == 1)
Full code
pawn Код:
new szMessage[256];
foreach(Player, i)
{
             {
                                if(PlayerInfo[i][pAdminLevel] >= 1)
                                {
                                        if(BigEars[i] == 1)
                                        {
                                                format(szLargeString, sizeof(szLargeString), "BigEars: %s", szMessage);
                                                SendClientMessage(playerid, COLOR_LIGHTRED, szLargeString);
                                        }
                                }
                        }
EDIT : Fixed CMD :cionrde , cmd:moneyall fixed [it myself]
Reply
#2

Код:
CMD:moneyall( playerid, params[] )
{
    new amount;
    new szMessage1[256];
    if(sscanf(params, "i", amount)) return SendClientMessage(playerid, -1, "Syntax: /moneyall [amount]");
    if(PlayerInfo[playerid][pAdminLevel] >= 6)
    {
        new i;
        foreach(Player, i)
        {
            PlayerInfo[i][pCash] += amount;
            format(szMessage1, sizeof(szMessage1), "Admin %s gave $%s to all players online.", PlayerName ( playerid ), NumberFormat(amount));
            SendClientMessage(i, 0xFFFFFFFF, szMessage1);
        }
    }
    return 1;
}
Reply
#3

PHP код:
CMD:cionrdeplayeridparams[] ) {
    if(
CiorditTimp[playerid] == 0) {
        new 
banili random(1000) + 500;
        new 
nume1[24],
        
nume2[24];
        new 
string[128];
        
GetPlayerName(playeridnume1sizeof(nume1));
        
format(string128"%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!"nume1banili);
        new 
IDvictima;
        
SCM(ID, -1string);
        
format(string128"I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!"nume2banili);
        
SCM(playerid, -1string);
        
SendClientMessage(playeridCOLOR_WHITEstring);
        
GivePlayerMoney(playeridbanili);
        
GivePlayerMoney(victima, -banili);
        
CiorditTimp[playerid] = 1;
        
SetTimerEx("ciordealatimp"120000false"i"playerid);
        return 
1;
    } else {
        
SendClientMessage(playeridCOLOR_GREY"Nu e nimeni langa tine!");
    }
    return 
1;

Then try a command like this to activate it
PHP код:
CMD:bigears(playerid)
{
    if(
playerInfo[playerid][pAdmin] >= 3)
    {
        if (!
BigEar[playerid])
        {
            
BigEar[playerid] = 1;
            
SendClientMessage(playeridCOLOR_ORANGE"Bigears ON!");
            return 
1;
        }
        else if (
BigEar[playerid])
        {
            
BigEar[playerid] = 0;
            
SendClientMessage(playeridCOLOR_ORANGE"Bigears OFF!");
            return 
1;
        }
    }
    return 
1;

Try this one for the szMessage
PHP код:
new bigears[128];
format(bigearssizeof(bigears), "bla bla bla"playerName(playerid)); 
Reply
#4

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Код:
CMD:moneyall( playerid, params[] )
{
    new amount;
    new szMessage1[256];
    if(sscanf(params, "i", amount)) return SendClientMessage(playerid, -1, "Syntax: /moneyall [amount]");
    if(PlayerInfo[playerid][pAdminLevel] >= 6)
    {
        new i;
        foreach(Player, i)
        {
            PlayerInfo[i][pCash] += amount;
            format(szMessage1, sizeof(szMessage1), "Admin %s gave $%s to all players online.", PlayerName ( playerid ), NumberFormat(amount));
            SendClientMessage(i, 0xFFFFFFFF, szMessage1);
        }
    }
    return 1;
}
what u mean ?
Код:
new i;
i get 4 errors o.O


__________________________________________________ _______________________________________

Quote:
Originally Posted by Jay_Dixon
Посмотреть сообщение
PHP код:
CMD:cionrdeplayeridparams[] ) {
    if(
CiorditTimp[playerid] == 0) {
        new 
banili random(1000) + 500;
        new 
nume1[24],
        
nume2[24];
        new 
string[128];
        
GetPlayerName(playeridnume1sizeof(nume1));
        
format(string128"%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!"nume1banili);
        new 
IDvictima;
        
SCM(ID, -1string);
        
format(string128"I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!"nume2banili);
        
SCM(playerid, -1string);
        
SendClientMessage(playeridCOLOR_WHITEstring);
        
GivePlayerMoney(playeridbanili);
        
GivePlayerMoney(victima, -banili);
        
CiorditTimp[playerid] = 1;
        
SetTimerEx("ciordealatimp"120000false"i"playerid);
        return 
1;
    } else {
        
SendClientMessage(playeridCOLOR_GREY"Nu e nimeni langa tine!");
    }
    return 
1;

Then try a command like this to activate it
PHP код:
CMD:bigears(playerid)
{
    if(
playerInfo[playerid][pAdmin] >= 3)
    {
        if (!
BigEar[playerid])
        {
            
BigEar[playerid] = 1;
            
SendClientMessage(playeridCOLOR_ORANGE"Bigears ON!");
            return 
1;
        }
        else if (
BigEar[playerid])
        {
            
BigEar[playerid] = 0;
            
SendClientMessage(playeridCOLOR_ORANGE"Bigears OFF!");
            return 
1;
        }
    }
    return 
1;

Try this one for the szMessage
PHP код:
new bigears[128];
format(bigearssizeof(bigears), "bla bla bla"playerName(playerid)); 
thanks is Fixed Cmd cionrde , and [Bigears] again i get errors example one :/
Reply
#5

Bump.
Reply
#6

Код:
CMD:moneyall( playerid, params[] )
{
    new amount;
    new szMessage[256];
    if(sscanf(params, "i", amount)) return SendClientMessage(playerid, -1, "Syntax: /moneyall [amount]");
    if(PlayerInfo[playerid][pAdminLevel] >= 6)
    {
        foreach(Player, i)
        {
            PlayerInfo[i][pCash] += amount;
            format(szMessage, sizeof(szMessage), "Admin %s gave $ %s to all players online.", PlayerName ( playerid ), NumberFormat(amount));
            SendClientMessage(i, 0xFFFFFFFF, szMessage);
        }
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by Kinglee
Посмотреть сообщение
Код:
CMD:moneyall( playerid, params[] )
{
    new amount;
    new szMessage[256];
    if(sscanf(params, "i", amount)) return SendClientMessage(playerid, -1, "Syntax: /moneyall [amount]");
    if(PlayerInfo[playerid][pAdminLevel] >= 6)
    {
        foreach(Player, i)
        {
            PlayerInfo[i][pCash] += amount;
            format(szMessage, sizeof(szMessage), "Admin %s gave $ %s to all players online.", PlayerName ( playerid ), NumberFormat(amount));
            SendClientMessage(i, 0xFFFFFFFF, szMessage);
        }
    }
    return 1;
}

JAJAJAJA , what you changed ? o.O nothing is changed.... [and this cmd i already i fixed By myself


EDIT : just you Want to involved..
Reply
#8

Bump
Reply
#9

Firsty You bumped your topic 2 times without 24 hours.
Reply
#10

Quote:
Originally Posted by Kinglee
Посмотреть сообщение
Firsty You bumped your topic 2 times without 24 hours.
Ohh shut your mouth , you don't help , don't reply , you Want to involved... o.O...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)