- 0
dialog help....pFff
-
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
xxSPEEDYxx
salls am fakt givecash in dialog-uri si imi da niste errori:
aici is toate dialog-urile
if(strcmp(cmdtext, "/givecash2", true) == 0) { ShowPlayerDialog(playerid,GiveCash,DIALOG_STYLE_INPUT,"Player ID","Please type the player id:","Next","Cancel"); return 1; }dupa accea am bagat la OnDialogResponse:if(dialogid == GiveCash) { if(!response) ShowPlayerDialog(playerid,GiveCash2,DIALOG_STYLE_INPUT,"Ammout","Please type the ammount of money:","Transfer","Cancel"); return 1; } if(dialogid == GiveCash2) { if(!response) if (IsPlayerConnected(giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { GivePlayerMoney(playerid, (0 - moneys)); GivePlayerMoney(giveplayerid, moneys); format(string, sizeof(string), "You have sent %s(player: %d), $%d.", giveplayer,giveplayerid, moneys); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid); SendClientMessage(giveplayerid, COLOR_YELLOW, string); printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid); } else { SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount."); } } else { format(string, sizeof(string), "%d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_YELLOW, string); } return 1; }asta si imi da errorile astea:help me va rogg:(!!!
Fara reclama in semnatura!
4 answers to this question
Recommended Posts