Raised This Month: $32 Target: $400
 8% 

List of all types available in sourcepawn?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertimor
AlliedModders Donor
Join Date: Sep 2017
Old 11-14-2020 , 10:45   List of all types available in sourcepawn?
Reply With Quote #1

Hello, I am working on a small project using Java with the Spring framework.
Currently, I need some kind of list of all types available in SourcePawn. Does anyone know, where I can get it, or currently have it? I'll be really glad!
supertimor is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-15-2020 , 05:28   Re: List of all types available in sourcepawn?
Reply With Quote #2

SourcePawn basically has only one real type - cell (signed 32bit integer) but it's internal.
Compiler understands these types (every type is same 4-byte integer basically, even bool):
- int
- enum (which is same int but compiler treats this as different tag/type)
- enum struct (works like struct in C++, but internally it's an array)
- bool (0 is treated as false, everything != 0 is true)
- float (compiler converts this to internal cell (integer) type, so when you decompile some code with floats, on output you get integer values)
- char (Which is multiplied by 4 (remember it's cell too, so every char/symbol in your array take 4 bytes instead of 1), so for example, in source code you have "char szText[16];" but compiled code has "char szText[64];".)
- Handle and Handle-based tags (you can create your own "types" from Handle)
Handles are C++ pointers to something in memory.
__________________

Last edited by MAGNAT2645; 11-15-2020 at 05:36.
MAGNAT2645 is offline
supertimor
AlliedModders Donor
Join Date: Sep 2017
Old 11-15-2020 , 05:38   Re: List of all types available in sourcepawn?
Reply With Quote #3

Thank you, but you don't understand me mate. I need just a list of all available types of variables, objects etc. I am working on project that basically will prevent anyone from decompiling plugins
I'll better write them down from API by myself I think
supertimor is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-15-2020 , 05:47   Re: List of all types available in sourcepawn?
Reply With Quote #4

Oh, okay.
__________________
MAGNAT2645 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 05:10.


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