Jump to content
  • 0

Resetare coins...


xxSPEEDYxx

Question

CMD:resetallcoins( PARAMS )
{
	if ( !IsPlayerAdmin( playerid ) ) return 1;

	foreach(Player, i )
	{
		dUserSetINT( i ).( "Coins", 0 );
	}
	return 1;
}
Vreau sa folosesc comanda asta o data cand bag serverul pe host pe 0.3d pentru a reseta la toti coins si dupa aceea sa o scot... Imi da eroarea asta:
C:\Documents and Settings\user\My Documents\RAS&MAP&FS&SERVERS\RAS\gamemodes\RAS.pwn(21471) : error 035: argument type mismatch (argument 1)

Linia: dUserSetINT( i ).( "Coins", 0 );

Fara reclama in semnatura!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Incearca asa:

CMD:resetallcoins(playerid, params[])
{
	if ( !IsPlayerAdmin( playerid ) ) return 1;

	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			UserSetINT(i).("Coins", 0);
		}
	}
	return 1;
}

NU!

Eu vreau sa resetez la toti, daca sunt online sau daca nu... Nu vad rostul lui if(IsPlayerConnected(i)) acolo....

Fara reclama in semnatura!

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.