SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 18/01/2012, 11:14 AM   #11
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: pointers.inc - Pointers for PAWN!

Script: awesome but I don't understand this, it makes new mouse pointers or?
__________________
All my works
I left SA:MP! Maybe once I start scripting again but now I'm based on web programming
Soon, I'll buy domain system32.com.hr but for now you can contact me on LogoOff or on my ******* channel!
System64 is offline   Reply With Quote
Old 18/01/2012, 11:30 AM   #12
CaHbKo
Huge Clucker
 
Join Date: Nov 2007
Posts: 399
Reputation: 41
Default Re: pointers.inc - Pointers for PAWN!

Does it have the same usage as
pawn Code:
...

    #define _d[%0] diInfo[slot][%0]
    _d[Rot] = rot;
    _d[Pos][0] = pos[0];
    _d[Pos][1] = pos[1];
    _d[Pos][2] = pos[2];
    _d[Label] = CreateDynamic3DTextLabel(str, -1, _d[Pos][0], _d[Pos][1], _d[Pos][2], 5.0, .testlos = 1, .worldid = _d[World]);
    #undef _d
...

?
CaHbKo is offline   Reply With Quote
Old 18/01/2012, 12:10 PM   #13
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,836
Reputation: 1607
Default Re: pointers.inc - Pointers for PAWN!

Quote:
Originally Posted by Stewie` View Post
Can I point a part of an array to make it easier, like:
The variable: PlayerInfo[playerid][gPlayerPos][3].

I make a pointer _point that points to PlayerInfo[playerid] and I just use (example) _point[gPlayerPos][3] ?
I'm not entierly sure how well enums are handled - you might get tag mismatch warnings. I'm currently thinking of ways to deal with enums - I'll get back to you if I come up with anything good!

@CaHbKo:
No, not really. That's just a way to have to type less code - this is a bit more complicated.

@******:
I must've overlooked doing it that way, I'll update the macros!
And yeah, the the reason it could be done this simple is because that bug/feature with round brackets that I stumbled upon while developing this.
Slice is offline   Reply With Quote
Old 18/01/2012, 01:47 PM   #14
Ricop522
High-roller
 
Ricop522's Avatar
 
Join Date: Feb 2010
Location: ES
Posts: 2,648
Reputation: 159
Default Re: pointers.inc - Pointers for PAWN!

Very nice , omg
__________________
"Any fool can write code that a
computer can understand. Good
programmers write code that
humans can understand."

AJUDA! Programação
Github
Ricop522 is offline   Reply With Quote
Old 18/01/2012, 03:26 PM   #15
steki.
High-roller
 
steki.'s Avatar
 
Join Date: Nov 2010
Location: São Paulo, Brasil
Posts: 2,558
Reputation: 315
Default Re: pointers.inc - Pointers for PAWN!

Indeed. That's just awesome.
__________________
Rio
steki. is offline   Reply With Quote
Old 18/01/2012, 04:11 PM   #16
Brian_G
Big Clucker
 
Brian_G's Avatar
 
Join Date: Jun 2010
Posts: 85
Reputation: 22
Default Re: pointers.inc - Pointers for PAWN!

wow 0.0
__________________
Forums:
SFCNR Image Hosting:
Brian_G is offline   Reply With Quote
Old 18/01/2012, 04:39 PM   #17
KingHual
Banned
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,303
Reputation: 1389
Default Re: pointers.inc - Pointers for PAWN!

Quote:
Originally Posted by System64 View Post
Script: awesome but I don't understand this, it makes new mouse pointers or?
Take a look at some C/++ tutorials. And no, it's not used for this. It returns the address of a variable.
KingHual is offline   Reply With Quote
Old 18/01/2012, 04:42 PM   #18
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 696
Default Re: pointers.inc - Pointers for PAWN!

I like the idea. Very nice done, will take a look at the code.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 18/01/2012, 05:11 PM   #19
Zh3r0
High-roller
 
Join Date: Mar 2008
Posts: 4,513
Reputation: 398
Default Re: pointers.inc - Pointers for PAWN!

People here are going crazy, OMG WHAT THA FACK and all this shit, but they have absolutely no idea what this is.

I apparently don't have an idea what this is either, but it's from Slice, and it has a post by ****** in it, so it must be cool.
__________________
Zh3r0 is offline   Reply With Quote
Old 18/01/2012, 05:13 PM   #20
steki.
High-roller
 
steki.'s Avatar
 
Join Date: Nov 2010
Location: São Paulo, Brasil
Posts: 2,558
Reputation: 315
Default Re: pointers.inc - Pointers for PAWN!

Quote:
Originally Posted by Zh3r0 View Post
People here are going crazy, OMG WHAT THA FACK and all this shit, but they have absolutely no idea what this is.

I apparently don't have an idea what this is either, but it's from Slice, and it has a post by ****** in it, so it must be cool.
http://www.cplusplus.com/doc/tutorial/pointers/
__________________
Rio
steki. 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
New to pawn, trying to convert some C code to pawn CHC Scripting Help 2 22/06/2012 05:09 AM
[HELP] [pawn][/pawn] bbcode for phpbb3 Kasura Help Archive 4 20/11/2010 04:35 AM
getting this tommorow!!!need a few pointers!! SAMPfan109 General 4 04/03/2010 08:14 PM
Pointers to an admin IRC bot Michael_Corleone Help Archive 5 21/07/2009 11:05 AM


All times are GMT. The time now is 11:14 PM.


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