Jump to content
  • 0

Question

Posted

Man hai sal am o problema cu fs tau de create clan vreau sa fac comanda creategang se ceara max 10 litere nu 10

CMD:creategang(playerid, params[])
{
	new GangName2[10],day,month,year,file[256],string[256];
    if(unformat(params, "s[10]", GangName2)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /creategang <name>(MAX 10)");
    if(PlayerInfo[playerid][GangID] > 0) return SendClientMessage(playerid, 0xFF0000AA, "You aleardy have a gang.");

	for(new i=1;i<=MAX_GANGS;i++)
	{
	    format(file, sizeof(file), "Gangs/%i.ini",i);
	    if(!dini_Exists(file))
	    {
            getdate(year, month, day);
	    	CreateGang(i,GangName2, PlayerName(playerid), day, month, year, "0xFFFFFFFF");
	    	PlayerInfo[playerid][GangID] = i;
	    	PlayerInfo[playerid][GangRank] = 6;
	    	format(PlayerInfo[playerid][GangName], 10, GangName2);break;
	    }
	}
	format(string, sizeof(string), "You have create gang %s",GangName2);
	SendClientMessage(playerid, 0xFF0000AA, string);
	return 1;
}

+ am erorile aste cand il pornesc

dbc6.png

Uploaded with ImageShack.us

5 answers to this question

Recommended Posts

Posted

Iti da acele erori pt. ca trebuie sa ai in scriptfiles fisierele care ti le cere FS-ul: arma1.txt , arma2.txt etc. Ti le va da gireada daca nu le ai.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.