Jump to content
  • 0

Eroare comanda [/skip].


FeVosFeR

Question

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.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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;
	}

 

Link to comment
Share on other sites

  • 0
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 ❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.