SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/06/2020, 08:24 PM   #11
[FMJ]PowerSurge
Big Clucker
 
Join Date: May 2012
Location: Nottingham, England
Posts: 125
Reputation: 19
Default Re: Const Correctness with Pawno Compiler version 3.10.10

A lot of includes weren't written using this compiler so there's going to be minimal compatibility, especially with older plugins. Changing the natives to include const may mess up compatibility with the plugin, too, if the plugin is built specifically not to use const strings.

EDIT:
Alternatively,
pawn Code:
#pragma warning disable 239
[FMJ]PowerSurge is offline   Reply With Quote
Old 02/06/2020, 04:46 AM   #12
SkyFlare
Huge Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 221
Reputation: 43
Default Re: Const Correctness with Pawno Compiler version 3.10.10

Quote:
Originally Posted by NaS View Post
Your issue is likely to come from the ApplyAnimation native call, rather than the preLoadAnimLib pawn function.

If you indented the code into at least two lines you could have noticed that the warning line is not the function header. The reason is the native definitions are not const correct in the original includes.
+REP thanks for the heads up on the Natives, I modified them all where needed and ill continue to do so if more pop up
__________________
Purchasable Scripting Services Available, Inbox me with your Requests.
My Project Progress Tracker
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare 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
Zeex Compiler | new version = error 035: argument type mismatch KrYpToDeN Scripting Help 2 04/01/2019 03:22 AM
Pawno not compiler AlexPalermitano97 Server Support 8 23/08/2016 01:37 PM
Pawno compiler Vegas. Scripting Help 7 17/04/2013 07:12 PM
Pawno compiler bug jaami Help Archive 2 05/03/2011 04:02 AM
[Pawno Compiler] Unable to Execute the Compiler Fabio11 Client Support 6 26/09/2010 09:37 PM


All times are GMT. The time now is 04:41 AM.


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