[POMOC] Zapelo oko komande


Započeo Huan Escobar, Avgust 22, 2016, 00:40:33 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: UP
Detaljan opis problema: Napravio sam DM event i pokusavam da namestim cmd kada admin ugasi DM da sve igrace izbaci sa njega ali mi ne ide upaljen event sam definisao kao event == 0 a ugasen event == 1 igrac kad se oridruzi eventu definisano je kao nadmeventu[playerid] = 1. Ako mi moze ko pomoci bio bih zahvalan.
Dio skripte:
CMD:dmoff(playerid, params[])
{
    new string[100];
    if(UlogovanProvjera[playerid] == 0) return SCM(playerid,-1, "{C0C0C0}Moras se ulogovati da bi koristio ovu komandu!");
    if(dmevent == 1) return SCM(playerid,-1,"Nema pokrenutog Eventa!");
	if(dmevent == 0)
	{
	foreach(Player,i)
			{
                if(dmevent = 1 && nadmeventu[playerid] = 1)
                {
   					JBC_SetPlayerHealth(i,0);
                    nadmeventu[i] = 0;
					JBC_ResetPlayerWeapons(i);
				}
			}
	}
	dmevent = 1;
	format(string, sizeof(string), "DM Event prekinut!");
	SCMTA(-1, string);
	return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Ovo
if(dmevent = 1 && nadmeventu[playerid] = 1)


Probaj zamijenit sa ovim
if(dmevent = 1 && nadmeventu[i] = 1)
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



warning 211: possibly unintended assignment
warning 211: possibly unintended assignment
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Ovo su errori i warninzi u ovoj liniji

   {
   foreach(Player,i)
         {
                if(dmevent = 1 && nadmeventu = 1)
                {
                  JBC_SetPlayerHealth(i,0);
                    nadmeventu = 0;
               JBC_ResetPlayerWeapons(i);
            }
         }
   }

a gdje ti je i
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



warning 211: possibly unintended assignment
warning 211: possibly unintended assignment
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Evo sa opet u tom redu errori


CMD:dmoff(playerid, params[])
{
    new string[100];
    if(UlogovanProvjera[playerid] == 0) return SCM(playerid,-1, "{C0C0C0}Moras se ulogovati da bi koristio ovu komandu!");
    if(dmevent == 1) return SCM(playerid,-1,"Nema pokrenutog Eventa!");
   if(dmevent == 0)
   {
   foreach(Player,i)
         {
                if(dmevent = 1 && nadmeventu[ i ] = 1)
                {
                  JBC_SetPlayerHealth(i,0);
                    nadmeventu = 0;
               JBC_ResetPlayerWeapons(i);
            }
         }
   }
   dmevent = 1;
   format(string, sizeof(string), "DM Event prekinut!");
   SCMTA(-1, string);
   return 1;
}

Ljudno de oprobaj ovo  :D

if(dmevent = 1 && nadmeventu = 1)

samo posle nadmeventu stavi i
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Ma stavim al tebi ne pise ovde posto to [..i..] forum uhvati kao forum kod i ne prikaze ga :D ima tu [..i..] u skripti :D


Pogledaj PP
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Drug ne trebas dva puta vrsiti provjeru da li je DM event u toku, jednom je dosta :D
KOPAJ KRIPTOVALUTU TELEFONOM! >>> SAZNAJ VIŠE <<<

Pi Coin Network se sada može prodavati!