Difference between revisions of "Talk:0413"
Jump to navigation
Jump to search
(→Code snippet: new section) |
|||
Line 2: | Line 2: | ||
I see something wrong with the code. The first parameter (0@) gets new value in the function's top, so its value is rewritten. What's the point of passing a player handle then? [[User:Seemann|Seemann]] ([[User talk:Seemann|talk]]) 11:38, 2 February 2015 (UTC) | I see something wrong with the code. The first parameter (0@) gets new value in the function's top, so its value is rewritten. What's the point of passing a player handle then? [[User:Seemann|Seemann]] ([[User talk:Seemann|talk]]) 11:38, 2 February 2015 (UTC) | ||
+ | |||
+ | :I had wanted to copy the format of the opcode but there's no CLEO opcode to get the location of the player struct, so I used a memory address directly. 0@ is labeled as a placeholder. Is it better to omit it?--[[User:Spaceeinstein|Spaceeinstein]] ([[User talk:Spaceeinstein|talk]]) 19:09, 2 February 2015 (UTC) |
Revision as of 19:09, 2 February 2015
Code snippet
I see something wrong with the code. The first parameter (0@) gets new value in the function's top, so its value is rewritten. What's the point of passing a player handle then? Seemann (talk) 11:38, 2 February 2015 (UTC)
- I had wanted to copy the format of the opcode but there's no CLEO opcode to get the location of the player struct, so I used a memory address directly. 0@ is labeled as a placeholder. Is it better to omit it?--Spaceeinstein (talk) 19:09, 2 February 2015 (UTC)