SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 18/07/2019, 12:30 PM   #1
Hatiro
Big Clucker
 
Join Date: Mar 2019
Posts: 105
Reputation: 2
Unhappy error 025: function heading differs from prototype

Code:
new PlayerText:TDEditor_PTD[MAX_PLAYERS][13];

public OnPlayerClickTextDraw(playerid, PlayerText:clickedid){ 
if(clickedid == TDEditor_PTD[playerid][2]) {
}
}
alguem poderia me ajudar?
Hatiro is offline   Reply With Quote
Old 18/07/2019, 12:46 PM   #2
NWDMadara
Huge Clucker
 
NWDMadara's Avatar
 
Join Date: Mar 2018
Posts: 369
Reputation: 11
Default Re: error 025: function heading differs from prototype

PHP Code:
public OnPlayerClickTextDraw(playeridText:clickedid
NWDMadara is online now   Reply With Quote
Old 18/07/2019, 12:50 PM   #3
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,303
Reputation: 318
Default Re: error 025: function heading differs from prototype

Está errado.

Text = OnPlayerClickTextDraw
PlayerText = OnPlayerClickPlayerTextDraw

PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == gPlayerTextDraw[playerid])
    {
         
SendClientMessage(playerid0xFFFFFFAA"You clicked on a textdraw.");
         
CancelSelectTextDraw(playerid);
         return 
1;
    }
    return 
0;

Substitua a callback por essa e faça as alterações necessárias.
ipsLuan is online now   Reply With Quote
Old 18/07/2019, 01:16 PM   #4
Hatiro
Big Clucker
 
Join Date: Mar 2019
Posts: 105
Reputation: 2
Default Re: error 025: function heading differs from prototype

valeu vocês dois agora pego ;3
Hatiro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help]How to fix error 025 function heading differs from prototype superbboy78 Scripting Help 4 29/12/2016 08:58 AM
[Ajuda] error 025: function heading differs from prototype ManoSwag Português/Portuguese 5 03/02/2015 05:52 PM
error 025: function heading differs from prototype Slicebook Scripting Help 3 24/05/2014 09:55 AM
error 025: function heading differs from prototype darkdave Scripting Help 2 06/08/2013 02:09 PM
error 025: function heading differs from prototype Beastlynoob Scripting Help 3 09/04/2012 12:15 PM


All times are GMT. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.