Raised This Month: $ Target: $400
 0% 

[Help] Arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadowdragon
Senior Member
Join Date: Dec 2012
Old 01-03-2015 , 07:11   [Help] Arrays
Reply With Quote #1

Hey all im having some issues with my arrays im getting strings back from a keyvalue and that works fine but when i want to check if there is XXXXX in that string it gives me a error.

PHP Code:
    if(Advert[0][4][0] == "NO")
    {
        
CPrintToChat(client"test 1"]);
    }
    if(
Advert[0][4][0] == "YES")
    {
        
PrintHintText(client"test 2");
    } 
The Error is : error 033: array must be indexed(variable "-unknown-")
__________________
Sorry for my poor English!
________________________________
I can do CSS/CSGO plugin request for little money!
shadowdragon is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 01-03-2015 , 08:34   Re: [Help] Arrays
Reply With Quote #2

https://sm.alliedmods.net/api/index....d=show&id=616&
or
https://sm.alliedmods.net/api/index....d=show&id=618&
KissLick is offline
shadowdragon
Senior Member
Join Date: Dec 2012
Old 01-03-2015 , 09:27   Re: [Help] Arrays
Reply With Quote #3

Ah thats just what i needed thanks!
__________________
Sorry for my poor English!
________________________________
I can do CSS/CSGO plugin request for little money!
shadowdragon is offline
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 05:17.


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