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

Filling a double dimensional array


Post New Thread Reply   
 
Thread Tools Display Modes
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-04-2017 , 13:36   Re: Filling a double dimensional array
Reply With Quote #21

Quote:
Originally Posted by Depresie View Post
What is wrong in this ?

PHP Code:
new Float:gf_PlayerDamage[33][31] = { 1.0, .. } 

Slightly offtopic.

Perhaps I am wrong but the second dimension acts as an array.

Only this will work:

gf_PlayerDamage[id][0] = 1.0;
gf_PlayerDamage[id][1] = 1.0;

etc...

Unless it's the player's damage multiplier for each weapon, and not damage for all weapons you need only one dimension.
eyal282 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-04-2017 , 13:53   Re: Filling a double dimensional array
Reply With Quote #22

eyal, that's having no sense.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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

Forum Jump


All times are GMT -4. The time now is 19:52.


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