enum problem
I have new problem...
PHP Code:
g_ePlayerData[i][Ime] = "smt" g_eSubData[j][sUser] = "another" and if I do g_ePlayerData[i][Ime] = g_eSubData[j][sUser] than my g_ePlayerData[i][Ime] is "amt". How can I fix this... |
Re: enum problem
What do you think code
PHP Code:
|
Re: enum problem
Have no clue :)
|
Re: enum problem
I thought so :)
Please read this http://wiki.amxmodx.org/index.php/Pawn_Tutorial#Arrays the section about arrays (link) and strings (right after arrays) And about enum - it declares and auto-calculates variables. PHP Code:
And what you did will s͖̦͔͎̎ú̼͎͍m̗̥͚̯̼̜͂̃̾̌̔m̦̱̳͉̯͔ͮ͌̌ͭͤo̳̯̝͔͚̤̎̐͢ ͔n ̹̗̺̙̋ͦ͌c̶ͩ̿t̚҉͙̱̪̗̦ḧ̥̟̯͇̳̦́ͅụ̰̹̤̝̞̣̂ͥ̓̌̌̆l̓͡ ̟̺̘̩̠͍̩ḩ͎͉̤̯̬̙ͨ͂̍͊ͣͥ̀u̎ͮ. |
Re: enum problem
His enum is about data structures, not contants.
|
Re: enum problem
Arkshine
So, pawn does have a structures? Because when i read wiki, it said pawn is based on small doesn't have structures or classes. |
Re: enum problem
Pseudo-structure, ugly hack but working. It's limited but you can do like he does. There is a tutorial and few posts about the use of data structures, you may search.
|
Re: enum problem
It works well with eg. AuthID but with g_ePlayerData[i][Ime] = g_eSubData[j][sUser] just replaces first letter of g_ePlayerData[i][Ime] with first letter of g_eSubData[j][sUser].
Btw I was looking at http://forums.alliedmods.net/showthread.php?t=140103 |
Re: enum problem
|
Re: enum problem
Try to use copy() native.
|
| All times are GMT -4. The time now is 04:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.