Jump to content
  • 0

Problema comanda


Bandowsky.

Question

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);
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
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

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

Link to comment
Share on other sites

  • 0
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

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.