SA-MP Forums Archive
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=579336)



error - RuNBoY - 26.06.2015

Whats this error "pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype".

how to fix it??

Thanks


Re: error - RuNBoY - 26.06.2015

anyone?


Re: error - Prokill911 - 26.06.2015

Uh?
You're just showing us the error...
Not the actual Code block it says is erroring..

but by the looks of it, You have an outdated include
Or you're referencing something incorrectly


Re: error - RuNBoY - 26.06.2015

This is the line : ShowPlayerDialog(playerid,Clan_SkinMChange,DIALOG_ STYLE_INPUT,"{0066CC}Romania {FFFF00}Fantastic {FF0000}Stunt{AFAFAF}- Clan Member Skin","{FF9900}Sorry but the Clan Skin Member is {FF0000}invalid{FF9900}!\n\n{FF9900}Please Insert Member Skin of the Clan","Next","");
return 0;


Re: error - Alex Magaсa - 26.06.2015

Are you using the latest plugin/includes of sscanf? (https://sampforum.blast.hk/showthread.php?tid=570927)

The problem is your include not your script.!


Re: error - Prokill911 - 26.06.2015

Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
This is the line : if ((SkinID < 0) || (SkinID > 299) || IsInvalidSkin(SkinID))
Well theres your problem...

You're not using the correct syntax....
PHP код:
if(IsInvalidSkin(skinID) || (SkinID || SkinID 299)) { 
Try that


Re: error - RuNBoY - 26.06.2015

i downloaded latest sscanf include but still that error


Re: error - Prokill911 - 26.06.2015

Quote:
Originally Posted by Prokill911
Посмотреть сообщение
Well theres your problem...

You're not using the correct syntax....
PHP код:
if(IsInvalidSkin(skinID) || (SkinID || SkinID 299)) { 
Try that
ABOVE ^



Edit:

You realize
Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
This is the line : if ((SkinID < 0) || (SkinID > 299) || IsInvalidSkin(SkinID))
The way that code reads is as followed

PHP код:
if((SkinID 0)
The above means..
If 
SkinID IS LOWER Than 0 
|| = OR
SkinID 299
If SkinID IS GREATER Than 299
|| = OR
IsInvalidSkin(SkinID))
So lets put that all together
if((SkinID IS LOWER Than 0) OR (SkinID Is GREAT Than 299) OR IsInvalidSkin(skinid)
Firstly...
You can't do this...
if((SkinID < 0) || (SkinID > 299)  
That'
s an INCORRECT Syntax statement.. == RETURNS ERRORS...
You're trying to enclose more statements then are required/needed
When using the ** || ** OR statement...
You'
re asking a question
if(SkinID 0Lets called that A
if(SkinID 299Lets call that B
So
...
If(
A returns true... || B returns True) { 
THIS STATEMENT IS CALLED
}
So Without all the syntax
if(A returns true OR B returns True) {
Does this




Re: error - RuNBoY - 26.06.2015

shit sorry this is real error line: ShowPlayerDialog(playerid,Clan_SkinMChange,DIALOG_ STYLE_INPUT,"{0066CC}Romania {FFFF00}Fantastic {FF0000}Stunt{AFAFAF}- Clan Member Skin","{FF9900}Sorry but the Clan Skin Member is {FF0000}invalid{FF9900}!\n\n{FF9900}Please Insert Member Skin of the Clan","Next","");


Re: error - Prokill911 - 26.06.2015

Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
shit sorry this is real error line: ShowPlayerDialog(playerid,Clan_SkinMChange,DIALOG_ STYLE_INPUT,"{0066CC}Romania {FFFF00}Fantastic {FF0000}Stunt{AFAFAF}- Clan Member Skin","{FF9900}Sorry but the Clan Skin Member is {FF0000}invalid{FF9900}!\n\n{FF9900}Please Insert Member Skin of the Clan","Next","");


THIS IS how ShowPlayerDialog Is meant to look....

PHP код:
new message[128], title[128];
format(titlesizeof(title),  "{0066CC}Romania {FFFF00}Fantastic {FF0000}Stunt{AFAFAF}- Clan Member Skin");
format(messagesizeof(message), "{FF9900}Sorry but the Clan Skin Member is {FF0000}invalid{FF9900}!\n\n{FF9900}Please Insert Member Skin of the Clan");
ShowPlayerDialog(playeridClan_SkinMChangeDIALOG_STYLE_INPUTtitlemessage"Next""");