Üdv
Mikor complie-zem a módomat:
- nem engedi, mert kifagy a pawno
- a server.cfg-ben \"Invalid/unsupported P-code file format\"
Ez a kód után lett ilyen:
new MoneyStr[32 +1];
switch(GetPlayerMoneyEx(playerid))
{
case 0..9: format(MoneyStr, sizeof(MoneyStr), \"000000000%d\", GetPlayerMoneyEx(playerid));
case 10..99: format(MoneyStr, sizeof(MoneyStr), \"00000000%d\", GetPlayerMoneyEx(playerid));
case 100..999: format(MoneyStr, sizeof(MoneyStr), \"0000000%d\", GetPlayerMoneyEx(playerid));
case 1000..9999: format(MoneyStr, sizeof(MoneyStr), \"000000%d\", GetPlayerMoneyEx(playerid));
case 10000..99999: format(MoneyStr, sizeof(MoneyStr), \"00000%d\", GetPlayerMoneyEx(playerid));
case 100000..999999: format(MoneyStr, sizeof(MoneyStr), \"0000%d\", GetPlayerMoneyEx(playerid));
case 1000000..9999999: format(MoneyStr, sizeof(MoneyStr), \"000%d\", GetPlayerMoneyEx(playerid));
case 10000000..99999999: format(MoneyStr, sizeof(MoneyStr), \"00%d\", GetPlayerMoneyEx(playerid));
case 100000000..999999999: format(MoneyStr, sizeof(MoneyStr), \"0%d\", GetPlayerMoneyEx(playerid));
case 1000000000..9999999999: format(MoneyStr, sizeof(MoneyStr), \"%d\", GetPlayerMoneyEx(playerid));
}
Az OnPlayerUpdate van és nem szeretném kiszedni, mivel szerintem nincs baj a kóddal.
Valaki tud valami megoldást?