SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/06/2015, 12:28 PM   #1
BigGreen
Big Clucker
 
Join Date: Feb 2015
Posts: 82
Reputation: 8
Thumbs up [Help] Prototype error

Hello i need help with a problem i got i was told by my hosting service to update my plugins and recompile it and i did but i get this error when i compile it


Code:
C:\Users\:D\Desktop\script\gamemodes\AGRP.pwn(34177) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
BigGreen is offline   Reply With Quote
Old 24/06/2015, 12:33 PM   #2
Evocator
Huge Clucker
 
Join Date: Nov 2013
Posts: 481
Reputation: 153
Default Re: [Help] Prototype error

Show the function line?
Evocator is offline   Reply With Quote
Old 24/06/2015, 12:42 PM   #3
BigGreen
Big Clucker
 
Join Date: Feb 2015
Posts: 82
Reputation: 8
Default Re: [Help] Prototype error

Quote:
Originally Posted by Ralfie View Post
Show the function line?
I dont know where it is all i did was update the streamer plugin and recompile it so it can work on the hosting servers and i get that error prototype
BigGreen is offline   Reply With Quote
Old 24/06/2015, 12:44 PM   #4
X337
Gangsta
 
Join Date: Sep 2014
Location: Indonesia
Posts: 880
Reputation: 287
Default Re: [Help] Prototype error

Show the script on line of that error.
__________________
viva la sa-mp
X337 is offline   Reply With Quote
Old 24/06/2015, 12:48 PM   #5
BigGreen
Big Clucker
 
Join Date: Feb 2015
Posts: 82
Reputation: 8
Default Re: [Help] Prototype error

Quote:
Originally Posted by bondowocopz View Post
Show the script on line of that error.
When i do CTRL F and i type Prototype it doesnt give me anything
BigGreen is offline   Reply With Quote
Old 24/06/2015, 01:25 PM   #6
X337
Gangsta
 
Join Date: Sep 2014
Location: Indonesia
Posts: 880
Reputation: 287
Default Re: [Help] Prototype error

Quote:
Originally Posted by BigGreen View Post
When i do CTRL F and i type Prototype it doesnt give me anything
Hmm, open AGRP.pwn press CTRL+G go to line 34177.
Copy the script on that line, paste here.
__________________
viva la sa-mp
X337 is offline   Reply With Quote
Old 24/06/2015, 01:30 PM   #7
BigGreen
Big Clucker
 
Join Date: Feb 2015
Posts: 82
Reputation: 8
Default Re: [Help] Prototype error

Quote:
Originally Posted by bondowocopz View Post
Hmm, open AGRP.pwn press CTRL+G go to line 34177.
Copy the script on that line, paste here.
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
BigGreen is offline   Reply With Quote
Old 24/06/2015, 01:47 PM   #8
KillerDVX
Banned
 
Join Date: Sep 2012
Location: /goto KillerDVX - You've been teleported to forum.sa-mp.com.
Posts: 686
Reputation: 54
Default Re : [Help] Prototype error

It's easy,

You're having a such old a_samp.inc.

Change it with a_samp.inc of 0.3.7 and recompile. ^^

Pastebin

KillerDVX,
KillerDVX is offline   Reply With Quote
Old 24/06/2015, 01:53 PM   #9
BigGreen
Big Clucker
 
Join Date: Feb 2015
Posts: 82
Reputation: 8
Default Re: Re : [Help] Prototype error

Quote:
Originally Posted by KillerDVX View Post
It's easy,

You're having a such old a_samp.inc.

Change it with a_samp.inc of 0.3.7 and recompile. ^^

Pastebin

KillerDVX,
Whats the pastebin link for?
BigGreen is offline   Reply With Quote
Old 24/06/2015, 02:03 PM   #10
KillerDVX
Banned
 
Join Date: Sep 2012
Location: /goto KillerDVX - You've been teleported to forum.sa-mp.com.
Posts: 686
Reputation: 54
Default Re : [Help] Prototype error

The new a_samp.inc. ^^
KillerDVX 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
OnPlayergivedamdge prototype error IDarkness Scripting Help 2 10/08/2014 04:46 AM
error 025: function heading differs from prototype! NEED HELP. LuckyPlaya` Scripting Help 2 22/01/2013 07:01 PM
[Ajuda] error 025: function heading differs from prototype e error 021: symbol already defined: "GetPlayerSpeed" Shum493 PortuguÍs/Portuguese 6 11/08/2012 01:13 PM
Compiling error: (3159) : error 025: function heading differs from prototype Joeyboy99 Scripting Help 2 10/08/2012 07:23 PM
Prototype error bishop934 Help Archive 3 26/06/2009 05:08 PM


All times are GMT. The time now is 07:24 PM.


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