Jump to content
  • 0

Question

Posted (edited)

Salutare! Am vrut sa fac comanda [/skip] de pe episodul lui Edison Tuts (LINK VIDEO), am reusit sa scriu exact cum a scris si el, doar ca mi-a dat o eroare.

Eroare:

Spoiler

da.png.73e40d0266982cf5348ec87af0a2ae8d.png

Pe mine nu ma intereseaza a doua eroare, ci prima care impiedica compilarea.

LINIA:

Spoiler

41529.png.199e3c93d807479090e895fbcb0d4352.png

Vreau sa precizez ca folosesc gamemode BigZone.

Comanda

Spoiler

comanda.thumb.png.74d96fff53dbb04624174509d7370160.png

 

Edited by FeVosFeR
Adaugare comanda.

3 answers to this question

Recommended Posts

  • 0
Posted

La 41529 ai uitat de o ')', trebuie sa fie: if(strcmp(cmdtext, "/skip", true) == 0) { }

  • 0
Posted

Comanda e pentru gm burned

CMD:skip(playerid, params[]) {
	if(TutorialActive[playerid] == 0) return SCM(playerid, -1,"Nu poti folosii comanda aceasta!");
	new i = playerid, string[256];
	TutorialActive[i] = 0;
	if(PlayerInfo[i][pTut] == 0) {
		ServerAccounts++;
		
		format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]);
		SendAdminMessage(COLOR_LIGHTRED, string, 1);
		
		for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");
		SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!");
		SendClientMessage(i, COLOR_YELLOW, "Tasteaza /bonus pentru a primii cadoul de deschidere.");
		
		SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0);

		ResetPlayerCash(i);
		GivePlayerCash(i, 1500000);
		PlayerInfo[i][pAccount] = 2000000;	
		
		format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='2000000',`Money`='1500000' WHERE `name`='%s'",GetName(i));
		mysql_query(SQL, string);	
		TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53;		
		TogglePlayerControllable(i, 1);
		TogglePlayerSpectating(i, 0);
		SetCameraBehindPlayer(i);			
		SpawnPlayer(i);	
		PlayerTextDrawHide(i, TutorialTD[0]);
		PlayerTextDrawHide(i, TutorialTD[1]);		
	}
	return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
	if(IsPlayerLogged[playerid] == 0) return 0;
	if(TutorialActive[playerid] == 1) {
		if(strcmp(cmdtext, "/skip", true) == 0)	{}
		else return 0;
	}

 

  • 0
Posted
On 6/22/2018 at 1:35 PM, Kravyus. said:

Comanda e pentru gm burned


CMD:skip(playerid, params[]) {
	if(TutorialActive[playerid] == 0) return SCM(playerid, -1,"Nu poti folosii comanda aceasta!");
	new i = playerid, string[256];
	TutorialActive[i] = 0;
	if(PlayerInfo[i][pTut] == 0) {
		ServerAccounts++;
		
		format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]);
		SendAdminMessage(COLOR_LIGHTRED, string, 1);
		
		for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, "");
		SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!");
		SendClientMessage(i, COLOR_YELLOW, "Tasteaza /bonus pentru a primii cadoul de deschidere.");
		
		SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0);

		ResetPlayerCash(i);
		GivePlayerCash(i, 1500000);
		PlayerInfo[i][pAccount] = 2000000;	
		
		format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='2000000',`Money`='1500000' WHERE `name`='%s'",GetName(i));
		mysql_query(SQL, string);	
		TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53;		
		TogglePlayerControllable(i, 1);
		TogglePlayerSpectating(i, 0);
		SetCameraBehindPlayer(i);			
		SpawnPlayer(i);	
		PlayerTextDrawHide(i, TutorialTD[0]);
		PlayerTextDrawHide(i, TutorialTD[1]);		
	}
	return 1;
}

public OnPlayerCommandReceived(playerid, cmdtext[])
{
	if(IsPlayerLogged[playerid] == 0) return 0;
	if(TutorialActive[playerid] == 1) {
		if(strcmp(cmdtext, "/skip", true) == 0)	{}
		else return 0;
	}

 

Multumesc chiar cautam pwp ❤️

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.