[Duvida]Alguma coisa esta errada ?
#1

bom minha string ta dando erro nesse sistema >
pawn Код:
new bool:BigEars[MAX_PLAYERS]; //At the top of your script

//The command
if(strcmp("/bigears",cmdtext,true,8) == 0)
{
    if(BigEars[playerid] == false) return BigEars[playerid] = true;
    if(BigEars[playerid] == true) return BigEars[playerid] = false;
}

//Under OnPlayerText
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
format(string,MAX_STRING,"%s: %s",n,text);
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(BigEars[i] == true)
        {
            if(IsPlayerInRangeOfPoint(i,30,pX,pY,pZ))
            {
                SendClientMessage(i,COLOR_GRAD1,string);
                return 0;
            }
        }
        else
        {
            if(IsPlayerInRangeOfPoint(i,5,pX,pY,pZ))
            {
                SendClientMessage(i,COLOR_GRAD1,string);
                return 0;
            }
        }
    }
}
Reply


Messages In This Thread
[Duvida]Alguma coisa esta errada ? - by [BcSTotty_Munson - 30.06.2012, 23:39
Re: [Duvida]Alguma coisa esta errada ? - by Edu33 - 30.06.2012, 23:41
Re: [Duvida]Alguma coisa esta errada ? - by .FuneraL. - 30.06.2012, 23:41
Re: [Duvida]Alguma coisa esta errada ? - by DrTHE - 30.06.2012, 23:44
Re: [Duvida]Alguma coisa esta errada ? - by [BcSTotty_Munson - 30.06.2012, 23:46
Re: [Duvida]Alguma coisa esta errada ? - by .FuneraL. - 30.06.2012, 23:47
Re: [Duvida]Alguma coisa esta errada ? - by DrTHE - 30.06.2012, 23:48
Re: [Duvida]Alguma coisa esta errada ? - by [BcSTotty_Munson - 30.06.2012, 23:49
Re: [Duvida]Alguma coisa esta errada ? - by F_Cinco - 01.07.2012, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)