#1

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

how to fix it??

Thanks
Reply
#2

anyone?
Reply
#3

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
Reply
#4

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;
Reply
#5

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.!
Reply
#6

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
Reply
#7

i downloaded latest sscanf include but still that error
Reply
#8

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

Reply
#9

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","");
Reply
#10

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"""); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)