#1

Hello. Does anybody knows what this error means? I never had it before.

Код:
C:\Documents and Settings\Tessa Krijnen\Mijn documenten\Fabians Fun Server (0.3e)\gamemodes\v3.9.pwn(680) : error 025: function heading differs from prototype
Reply
#2

Your forward and public have different parameters
Reply
#3

Oh, then could someone edit this Forward / Public?

Код:
public OnPlayerText(playerid,Text[])
{
    new name[20];
    GetPlayerName(playerid,name,20);
    format(Text,sizeof(Text),"%s[ID:%d] : %s",name,playerid,Text);
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    for(new i = 0;i<MAX_PLAYERS;++i)
    {
        if(IsPlayerInRangeOfPoint(i,5,X,Y,Z)) SendClientMessage(i,-1,Text);
        return 0;
    }
    return 1;
}
I got the error when i added that.
Reply
#4

Bumpi?
Reply
#5

Why not to use ZCMD? I think it will be much easy.
Reply
#6

Change Text with text
pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[20];
    GetPlayerName(playerid,name,20);
    format(text,sizeof(text),"%s[ID:%d] : %s",name,playerid,text);
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    for(new i = 0;i<MAX_PLAYERS;++i)
    {
        if(IsPlayerInRangeOfPoint(i,5,X,Y,Z)) SendClientMessage(i,-1,text);
        return 0;
    }
    return 1;
}
Reply
#7

Thanks! Does anyone knows what this warnings mean? Im tryin to fix it but... :/

They are just warnings, but i wanna fix it.

Код:
C:\Documents and Settings\Tessa Krijnen\Mijn documenten\Fabians Fun Server (0.3e)\gamemodes\v3.9.pwn(684) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
C:\Documents and Settings\Tessa Krijnen\Mijn documenten\Fabians Fun Server (0.3e)\gamemodes\v3.9.pwn(1959) : warning 225: unreachable code
C:\Documents and Settings\Tessa Krijnen\Mijn documenten\Fabians Fun Server (0.3e)\gamemodes\v3.9.pwn(2156) : warning 219: local variable "str" shadows a variable at a preceding level
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)