Raised This Month: $ Target: $400
 0% 

Error: Must be assigned to an array?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-26-2009 , 14:33   Re: Error: Must be assigned to an array?
Reply With Quote #1

Quote:
Originally Posted by Sleepwalker View Post
Code:
data[1] = name;
data[2] = authid;
data[8] = message;
data[10] = mapname;
There's some pawn tutorials you should read.
You can't put 31 chars long name to one.
There's some examples:
new int = 11;
new int[1]; int[0] = 11;
new name[32];
name[0] = "N";
get_user_name(index, name, 31);
Just watch that the arrays' chars fit.

Last edited by SnoW; 01-26-2009 at 14:35.
SnoW is offline
Send a message via MSN to SnoW
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 01:41.


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