Raised This Month: $51 Target: $400
 12% 

Solved SortCustom1D with new decl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Old 12-17-2016 , 12:47   SortCustom1D with new decl
Reply With Quote #1

Hello im getting always prototype not mach the function when i try to convert this code

Spoiler


new code ( where i get the error)
Spoiler


this is where the error come out SortCustom1D(clients, MaxClients, ScoreGreaterThan);

if someone can help me it will be appreciated ty
__________________

Last edited by TonyBaretta; 12-17-2016 at 13:46.
TonyBaretta is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-17-2016 , 13:29   Re: SortCustom1D with new decl
Reply With Quote #2

If you look at SortFunc1D typedef you will notice that your function prototype has to look like this instead:
PHP Code:
public int ScoreGreaterThan(int leftint right, const int[] clientidsHandle data
klippy is offline
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Old 12-17-2016 , 13:45   Re: SortCustom1D with new decl
Reply With Quote #3

:facepalm: tnx , i was pretty confused after convert the entire tf2ware plugin understand me XD
__________________
TonyBaretta is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode