Jump to content

Question

Posted

Problema intalnita (descriere): eroare timer
Ero(area / rile) / warning-(ul / urile): 

CMD:votelider(playerid,params[])
{
	if(IsPlayerConnected(playerid))
	{
		if(votelider == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu e nici o votare in desfasurare");
		{
			if((GetTickCount()-WaitTimeForCMD[playerid])>120000)return SendClientMessage(playerid,RED,"ERROR: Tocmai ai votat !");
			if(sscanf(params, "ui",id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/votelider <Playerid>");
			if(IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFFFFFFFF, "Jucatorul nominalizat nu este pe server .");
			{
				SendClientMessageToAll(COLOR_RED, " %s l-a ales pe %d pentru functia de lider.");
			}
		}
	}
	return 1;
}


Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:  da 

2 answers to this question

Recommended Posts

  • 0
Posted

Eu aș spune să îți faci o variabilă care să stocheze că jucătorul poate vota sau nu. O poți adăuga în PlayerInfo-ul tău sau ce ai pentru a stoca informațiile jucătorului sau poți face o variabilă nouă separat, în exemplul de mai jos o să fac o variabilă separat.

http://pastebin.com/DW0YnQBT

 

Gh38gEQ.gif

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.