Raised This Month: $ Target: $400
 0% 

error 028: invalid subscript (not an array or too many subscripts): "bhop"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-21-2013 , 14:24   Re: error 028: invalid subscript (not an array or too many subscripts): "bhop"
Reply With Quote #1

The problem is you have modified something you don't understand.

static bool:bhop=false is wrong if you want to make a var for player.

You have to do something like : new bool:bhop[33] ; you create an array where you can put all player's indexes.
__________________
Arkshine is offline
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 08-21-2013 , 14:30   Re: error 028: invalid subscript (not an array or too many subscripts): "bhop"
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
The problem is you have modified something you don't understand.

static bool:bhop=false is wrong if you want to make a var for player.

You have to do something like : new bool:bhop[33] ; you create an array where you can put all player's indexes.
AAhhhhh, thanks.

I am first time working with variables for every players separately from the zero.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
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 15:53.


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