Jump to content
  • 0

pomoc Help


zuzka

Dotaz

Pwn kod

 

dini_IntSet(cesta,"Zbrane",dini_Int(cesta,"Zbrane")-1);

GivePlayerWeapon(playerid,26,500);

}

else

{

GivePlayerWeapon(playerid,29,500);

}

else

{

GivePlayerWeapon(playerid,31,500);

}

else

{

GivePlayerWeapon(playerid,24,500);

}

 

 

Erory

 

K:\CR.pwn(3966) : error 029: invalid expression, assumed zero

K:\CR.pwn(3970) : error 029: invalid expression, assumed zero

 

 

 

Prosím pomožte mi

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

mam to takto

 

 

if(dini_Int(cesta,"Zbrane") != 0)

{

dini_IntSet(cesta,"Zbrane",dini_Int(cesta,"Zbrane")-1);

GivePlayerWeapon(playerid,26,500);

}

else

{

GivePlayerWeapon(playerid,29,500);

}

else

{

GivePlayerWeapon(playerid,31,500);

}

else

{

GivePlayerWeapon(playerid,24,500);

}

Link to comment
Share on other sites

  • 0

Tak například, nemám tady na notebooku pawno, tak ti udělám příklad.

 

if(dini_Int(cesta,"Zbrane") != 0)

{

new IDZbrane = dini_Int(cesta,"IDZbrane");

dini_IntSet(cesta,"Zbrane",dini_Int(cesta,"Zbrane")-1);

GivePlayerWeapon(playerid,IDZbrane,500);

}

 

A potom si uděláš ukládání na IDZbrane atd.

 

//EDIT: Pokud by jsi tak byl(a) hodný(á), a poslala mi do PM pwn od Server settings, budu moc vděčný. Děkuji.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...