SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/03/2012, 12:48 PM   #1
Dark Crow
Big Clucker
 
Join Date: Feb 2012
Posts: 89
Reputation: 0
Default Help with Messages

MIstake by me so sry it was a simple error i didn't saw it -Removed
Dark Crow is offline   Reply With Quote
Old 02/03/2012, 12:53 PM   #2
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Fontys Uni. - Applied Sciences (Currently doing the hardest possible study Fontys has to offer)
Posts: 2,627
Reputation: 819
Default Re: Help with Messages

array entries should be separated by a comma, the last entry not. eg:

pawn Code:
new HelloWorld[10] = {0,1,2,3,4,5,6,7,8,9};
//is just the same like:
new HelloWorld[10] =
{
    0,
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9//no comma
};
//and if you need to do it with strings:
new HelloWorld[10][32] = //10 is the amount of entries, 32 the max string size
{
    "abc",
    "def",
    "ghi",
    "jkl",
    "mno",
    "pqr",
    "stu",
    "vwx",
    "yz",
    "abcdefghijklmnopqrstuvwxyz"//no comma
};
//and removed some entries:
new HelloWorld[7][32] =
{
    "abc",
    "def",
    "ghi",
    "jkl",
    "mno",
    "stu",
    "vwx"//no comma
};

however (not related to the topic) enumerators may have the last entry ending with a comma.
__________________

Google code not working? Try GitHub
Gamer_Z is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] P-Messages [Random Messages system] Pooh7 Filterscripts 5 30/11/2010 04:43 PM
[FilterScript] [FS]Messages. stylezzz Filterscripts 9 29/10/2010 06:00 PM
Messages :D dillo1000 Help Archive 4 24/10/2010 12:37 PM
messages sk1llz Help Archive 26 07/02/2009 08:24 PM


All times are GMT. The time now is 05:50 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.