05.12.2014, 19:28
hello, i've been working on a stats command and I don't seem to be able to have Money nor anything to load
I keep getting errors on that GetPlayerMoney line, i don't get why.
If you're able to help that would be great
Код:
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;
}
Код:
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



