Raised This Month: $ Target: $400
 0% 

Problem with array (its not a n00b question)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-15-2009 , 01:07   Re: Problem with array (its not a n00b question)
Reply With Quote #2

You're creating an array of strings. Each string in another array. 'static price' IS NOT an array, then you CANT assign an array of chars (a string) to it.

You should store the weapon prices as cells (no quotes in the values, and a single dimension ([] instead of [][]), then use %d instead of %s in client_print.
__________________

Community / No support through PM
danielkza is offline
 



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 01:41.


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