Jump to content
  • 0

problema cu /goto!


Question

Posted

pai am inceput sa lucram la un mod cu unu si avem un bug/problema cu o comanda

uite cum face

deci pornim serveru totul e ok merge /goto bun perfect

dam /endround si cand dau /goto ma da langa el dar nu-l vad dc?

careva ar sti?

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

10 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

Poate nu-s comenzile facute cum trebuie,ma refer la coordonatele de la SetPlayerPosition

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

  • 0
Posted

Am patit si eu exact la fel. Avea lag srv. deci daca prima data ti-a mers si dupa /endround nu iti merge. inseamna ca ori ai tu lag, ori are el lag sau are serverul ;)

  • 0
Posted

Poate nu-s comenzile facute cum trebuie,ma refer la coordonatele de la SetPlayerPosition

pai baiu ii ca ne da unu langa altu doar ca nu ne vedem si cu lagu nu cred daca ne da bine ca lam intrebat unde ii si eram in acelasi loc si icoana lui dupa radar era departe

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

  • 0
Posted

Da poate fi lagul... eu am patit asa. sau pana mea..

Stiu sigur ca si eu am patit asa. Dupa ce am dat 2 restarturi . si am inchis ce aveam ... mi-a mers...

  • 0
Posted

/goto

if(strcmp(cmd, "/goto", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /goto [playerid/PartOfName]");
				return 1;
			}
			new Float:plocx,Float:plocy,Float:plocz;
			new plo;
			plo = ReturnUser(tmp);
			if (IsPlayerConnected(plo))
			{
			    if(plo != INVALID_PLAYER_ID)
			    {
					if (PlayerInfo[playerid][pAdmin] >= 1)
					{
						if(Spectate[playerid] != 255)
						{
							Spectate[playerid] = 256;
						}
						GetPlayerPos(plo, plocx, plocy, plocz);
						if(PlayerInfo[plo][pInt] > 0)
						{
							SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
							PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
							PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
						}
						if(PlayerInfo[playerid][pInt] == 0)
						{
							SetPlayerInterior(playerid,0);
						}
						if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0)
						{
							SetPlayerInterior(playerid,1);
							PlayerInfo[playerid][pInt] = 1;
						}
						if (GetPlayerState(playerid) == 2)
						{
							new tmpcar = GetPlayerVehicleID(playerid);
							SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
							TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
						}
						else
						{
							SetPlayerPos(playerid,plocx,plocy+2, plocz);
						}
						SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported");
					}
					else
					{
						SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command.");
					}
				}
			}
			else
			{
				format(string, sizeof(string), "   %d is not an active player.", plo);
				SendClientMessage(playerid, COLOR_GRAD1, string);
			}
		}
		return 1;
	}
/endround
if(strcmp(cmd, "/endround", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	  		if (PlayerInfo[playerid][pAdmin] >= 6)
			{
				GameModeInitExitFunc();
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command !");
			}
		}
		return 1;
	}

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

  • 0
Posted

mda, este la fel ca al meu. si la mine nu da nici o eroare.

Sunt mai multe optiuni

1. Ai lag tu

2. Are lag celalt

3. Are lag serverul

4. E o problema de altundeva

5. Sa nu fie de la contul tau [incearca sa iti faci alt cont]

  • 0
Posted

da la toti adminii le face asa

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

  • 0
Posted

da-mi un pm cu ip srv, sau da-mi id tau....

  • 0
Posted

am aflat problema da nu stiu inca cum so repar e bai cu virtual worlds

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Guest
This topic is now closed to further replies.
×
×
  • 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.