- 0
Problema cod pawno
-
Similar Content
-
- 5 replies
- 1,207 views
-
- 5 replies
- 1,306 views
-
- 2 answers
- 81 views
-
- 63 replies
- 14,276 views
-
- 17 answers
- 1,996 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Doinel Costache
Salutare, incerc sa invat pawno si nu inteleg ceva la codul asta.
In joc nu imi afiseaza numele jucatorului cand apare mesajul asta "Jucatorul %s are deja suma de bani pe care incerci sa i-o setezi" . Adica unde am scris eu acolo "%s" nu inlocuieste in joc cu numele jucatorului caruia vreau sa ii setez banii.
CMD:setmoney(playerid, params[])
{
new target;
new money;
if(sscanf(params, "ui", target, money)) return SendClientMessage(playerid, 0x66CC66FF, "USAGE: /setmoney [playerid] [amount]");
{
if(GetPlayerMoney(playerid) == money)
{
new string2[128];
format(string2, sizeof(string2), "Jucatorul %s are deja suma de bani pe care incerci sa i-o setezi", target);
SendClientMessage(playerid, 0x66CC66FF,string2);
}
else if(GetPlayerMoney(playerid) != money)
{
ResetPlayerMoney(target);
GivePlayerMoney(target, money);
new string[128];
format(string, sizeof(string), "Un Administrator ti-a setat banii la %d$", money);
SendClientMessage(target, 0x66CC66FF,string);
}
return 1;
}
}
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.