Bug In My GameMode
#1

hi
today i wrote a script like this:
PHP код:
new ClanName[10];
public 
OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    
format(ClanName[0], 128"None");
    
format(ClanName[1], 128"None");
    
format(ClanName[2], 128"None");
    
format(ClanName[3], 128"None");
    for(new 
04i++)
    {
        print(
ClanName[i]);
    }

but print is note none none none none
Print :
Код HTML:
NNNNone
NNNone
NNone
None
what is problem??
Reply
#2

PHP код:
new ClanName[10][10]; 
The first is the size of the array and the second is the size of the string.

You should mention the string size too.
Reply
#3

tnx bro
fixed <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)