Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error (
/showthread.php?tid=367571)
Error -
CrazyManiac - 10.08.2012
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
Re: Error -
[MM]RoXoR[FS] - 10.08.2012
Your forward and public have different parameters
Re: Error -
CrazyManiac - 10.08.2012
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.
Re: Error -
CrazyManiac - 10.08.2012
Bumpi?
Re: Error -
Stm - 10.08.2012
Why not to use ZCMD? I think it will be much easy.
Re: Error -
[MM]RoXoR[FS] - 10.08.2012
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;
}
Re: Error -
CrazyManiac - 10.08.2012
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