Jump to content

Question

Posted
Deci am facut un script ceva modificat de la getgift,si cand am dat compile mi-a dat eroarea asta
Acesta este codul:
if(pack == 13)
		{
     		GivePlayerCash(playerid, 879234);
		Update(playerid, pCashx);
		PlayerInfo[playerid][pPack] -= 1;
		Update(playerid, pPackx);
		SendClientMessage(playerid, COLOR_YELLOW,"{ffffff}In acest pack ti-a cazut:Bani(in fine,nu scrie asta aici)");
		 return 1;
		}

Problema :(44350) : error 029: invalid expression, assumed zero

              (44350) : error 035: argument type mismatch (argument 2)
Linia  44350:        Update(playerid, pPackx);

9 answers to this question

Recommended Posts

  • 0
Posted
9 minutes ago, Bandowsky. said:

#define pPackx
Si i-am facut si case

pai trebuie sa aiba si un numar, sau ai pus doar asa? #define pPackx

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted
Incearca asa
if(pack == 13)
{
     GivePlayerCash(playerid, 879234);
     PlayerInfo[playerid][pPack] -= 1;
     Update(playerid, pPackx);
     SendClientMessage(playerid, COLOR_YELLOW,"{ffffff}In acest pack ti-a cazut:Bani(in fine,nu scrie asta aici)");
return 1;
}

poti sa faci si o schimbare daca doriti 

new randmoney = 100000 + random(90000); //suma de bani
       GivePlayerCash(playerid, randmoney);

       Update(playerid, pCashx);

etc.

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted
10 minutes ago, Bandowsky. said:

Aceeasi problema...

la ce linii iti da eroarea?

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted
23 minutes ago, Bandowsky. said:

La Update(playerid, pPackx)

cum e definit pPackx ?

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.