SA-MP Forums Archive
Bug In My GameMode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug In My GameMode (/showthread.php?tid=617522)



Bug In My GameMode - sdt7 - 22.09.2016

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??


Re: Bug In My GameMode - DarkSkull - 22.09.2016

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.


Re: Bug In My GameMode - sdt7 - 22.09.2016

tnx bro
fixed <3