Jump to content
  • 0

Problema GunGame


KAPSu

Question

[pawn]C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zero

C:\Users\Andrei\Desktop\GunGme.pwn(86) : warning 215: expression has no effect

C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 001: expected token: ";", but found "]"

C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zero

C:\Users\Andrei\Desktop\GunGme.pwn(86) : fatal error 107: too many error messages on one line[/pawn]

linia 86: if(PlayerInfo[playerid][pAdmin] >= 4)

Cel din urma va fi cel dintâi.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Comanda /gungame:

[pawn]if (strcmp(cmdtext, "/gungame", true)==0)

{

if(gungame == 1)

{

if(PlayerInfo[playerid][pAdmin] >= 4)

                        {

GetPlayerName(playerid, sendername, sizeof(sendername));

SendClientMessageToAll(0xFFD700AA,"{99FF00}=========================== GunGame Event ===========================");

SendClientMessageToAll(0xFFD700AA,"{CCCCCC}Eventul {99FF00}GunGame {CCCCCC}este pe cale sa inceapa!");

SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Acesta v-a incepe in {99FF00}30 de secunde{CCCCCC}, grabeste-te sa te inscri -> [/participa]");

SendClientMessageToAll(0xFFD700AA,"{99FF00}=========================== GunGame Event ===========================");

SetTimer("StartGunGame", 30000, 0);

gungame = 0;

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "Un event GunGame e deja pornit , nu mai poti porni altul!");

}

}[/pawn]

Cel din urma va fi cel dintâi.

Link to comment
Share on other sites

Incearca acum:

if (strcmp(cmdtext, "/gungame", true) == 0)
{
	if(gungame == 1)
	{
		if(PlayerInfo[playerid][pAdmin] >= 4)
        {

			GetPlayerName(playerid, sendername, sizeof(sendername));
			SendClientMessageToAll(0xFFD700AA, "{99FF00}=========================== GunGame Event ===========================");
			SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Eventul {99FF00}GunGame {CCCCCC}este pe cale sa inceapa!");
			SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Acesta v-a incepe in {99FF00}30 de secunde{CCCCCC}, grabeste-te sa te inscri -> [/participa]");
			SendClientMessageToAll(0xFFD700AA, "{99FF00}=========================== GunGame Event ===========================");
			SetTimer("StartGunGame", 30000, 0);
			gungame = 0;
		}
		else 
		{
			SendClientMessage(playerid, 0xFFFFFFAA, "Tu nu ai acces la aceasta comanda!");
		}
	}
	else
	{
		SendClientMessage(playerid, COLOR_WHITE, "Un event GunGame e deja pornit , nu mai poti porni altul!");
	}
	return 1;
}

Link to comment
Share on other sites

Ti-am aratat prin TV cum se face, dar mai aveai 6 erori pentru ca erau niste comenzi in afara callback-ului "OnPlayerCommandText(params)" si nu stiu de ce ai inchis conexiunea.

Tu ai vrut sa folosesti pAdmin intr-un filterscript, el fiind definit in gamemode, ceea ce nu se poate. Asa ca ti-am inlocuit cu PVars, ca sa fie compatibil cu ambele scripturi.

Ca sa rezolvi si erorile alea 6, trebuie sa pui comenzile alea de jos in callback-ul "OnPlayerCommandText(params)".

Link to comment
Share on other sites

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.