Stats
#2

Quote:
Originally Posted by LeXuZ
Посмотреть сообщение
hello, i've been working on a stats command and I don't seem to be able to have Money nor anything to load

Код:
CMD:stats(playerid, params[])
{
	new sstr[300], sstr1[1000];
	format(sstr, sizeof(sstr), "Money %d" GetPlayerMoney(playerid));
	strcat(sstr1, sstr);
	format(sstr, sizeof(sstr), "Kills %d");
	strcat(sstr1, sstr);
	format(sstr, sizeof(sstr), "Deaths %d");
	strcat(sstr1, sstr);
	format(sstr, sizeof(sstr), "Credits %d");
	strcat(sstr1, sstr);
 	SPD(playerid, stats, DIALOG_STYLE_MSGBOX, "Stats", " sstr", "Close","");
	return 1;
}
I keep getting errors on that GetPlayerMoney line, i don't get why.

Код:
C:\Users\BLACK\Desktop\Test\filterscripts\Accounts0.4.pwn(537) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\BLACK\Desktop\Test\filterscripts\Accounts0.4.pwn(537) : error 001: expected token: ";", but found ")"
C:\Users\BLACK\Desktop\Test\filterscripts\Accounts0.4.pwn(537) : error 029: invalid expression, assumed zero
C:\Users\BLACK\Desktop\Test\filterscripts\Accounts0.4.pwn(537) : fatal error 107: too many error messages on one line
If you're able to help that would be great
Код:
 expected token: "-string end-", but found "-identifier-"
here:
pawn Код:
format(sstr, sizeof(sstr), "Money %d" GetPlayerMoney(playerid));
you forgot the comma after the 3th argument

pawn Код:
format(sstr, sizeof(sstr), "Money %d", GetPlayerMoney(playerid));
Reply


Messages In This Thread
Stats - by LeXuZ - 05.12.2014, 19:28
Re: Stats - by CutX - 05.12.2014, 19:37
Re: Stats - by LeXuZ - 05.12.2014, 19:53
Re: Stats - by LeXuZ - 05.12.2014, 19:57
Re: Stats - by JaKe Elite - 05.12.2014, 20:03
Re: Stats - by LeXuZ - 05.12.2014, 22:51
Re: Stats - by LeXuZ - 06.12.2014, 09:14
Re : Stats - by StreetRP - 06.12.2014, 09:20
Re: Stats - by LeXuZ - 06.12.2014, 09:32
Re: Stats - by AnthonyTimmers - 06.12.2014, 10:50

Forum Jump:


Users browsing this thread: 8 Guest(s)