Problem
#1

Can you help me?

pawn Код:
if(strcmp(cmd, "/whisper", true) == 0 || strcmp(cmd, "/w", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, 0x33FF33FF, "   Tu nu esti Logat !");
                return 1;
            }
            if(PlayerInfo[playerid][pLevel] < 3)
            {
                 SendClientMessage(playerid, 0x4FA7FFFF, "Tu nu ai level 3 pentru a utiliza Comanda.");
                return 1;
                }
            if(PlayerInfo[playerid][pMuted] == 1)
            {
                format(string, sizeof(string), "[Mute] Tu nu poti sa scri nimic, trebuie sa astepti %d Secunde !",PlayerInfo[playerid][pMuteTime]);
                SendClientMessage(playerid, 0x99FF00FF, string);
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, 0x33FF33FF, "Scrie: (/w)isper [ID/PartOfName] [Whisper Text]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    if(HidePM[giveplayerid] > 0)
                    {
                        SendClientMessage(playerid, COLOR_LIGHTGREEN, "   Acest Jucator are Whisper Blocat!");
                        return 1;
                    }
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                    if(giveplayerid == playerid)
                    {
                        format(string, sizeof(string), "* %s Mutters Somthing.", sendername);
                        ProxDetector(5.0, playerid, string, 0x99FF00FF,0x99FF00FF,0x99FF00FF,0x99FF00FF,0x99FF00FF);
                    }
                    new length = strlen(cmdtext);
                    while ((idx < length) && (cmdtext[idx] <= ' '))
                    {
                        idx++;
                    }
                    new offset = idx;
                    new result[64];
                    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                    {
                        result[idx - offset] = cmdtext[idx];
                        idx++;
                    }
                    result[idx - offset] = EOS;
                    if(!strlen(result))
                    {
                        SendClientMessage(playerid, 0x33FF33FF, "{55D4FF}SCRIE:{B4B4B4} (/w)isper [ID/PartOfName] [Whisper Text]");
                        return 1;
                    }
                    result[0] = toupper(result[0]);
                    if(FindIP(result)) /// Anti-Reclama
                    {
                        new advertiser[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, advertiser, sizeof(advertiser));
                        format(string, sizeof(string), "{FF0000}[Server ]: %s was BanneD {00FFFF}By AdminCMD, Motiv: ReclaMa /w",advertiser);
                        SendClientMessageToAll(0xCC00FFFF,string);
                        BanLog(string);
                        Ban(playerid);
                        return 1;
                    }
                    format(string, sizeof(string), "%s[ID:%d] Whispers: %s", sendername, playerid, (result));
                    SendClientMessage(giveplayerid, 0x756BE7FF, string);
                    format(string, sizeof(string), "Wisper Trimis lui %s[ID:%d] : %s", giveplayer, giveplayerid ,(result));
                    SendClientMessage(playerid, 0x756BE7FF, string);
                    SBizzInfo[2][sbTill] += txtcost / 2;
                    ExtortionSBiz(2, txtcost / 2);
                    for(new i = 0; i < MAX_PLAYERS; i++)
                    {
 33459                          if(BigEar[i]);
                           {
                                    format(string, sizeof(string), "Wisper Trimis lui %s[ID:%d] de catre %s[ID: %d]: %s", giveplayer, giveplayerid, sendername, playerid, (result));
                                    SendClientMessage(i, 0x756BE7FF, string);
                                    return 1;
                           }
                    }
                    return 1;
                }
            }
            else
            {
                    format(string, sizeof(string), " Acest jucator nu este Online pe .... .", giveplayerid);
                    SendClientMessage(playerid, 0x33FF33FF, string);
            }
        }
        return 1;
    }




Код:
C:\Documents and Settings\Madalin\Desktop\documente\Server eFFEcT,\gamemodes\Godfather.pwn(33459) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Help me , please ?
Reply
#3

Your code:
pawn Код:
if(BigEar[i]);
In if statements, do not use semicolon (;) at the end. Change to:
pawn Код:
if(BigEar[i])
Reply
#4

Thenks! Resolved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)