SA-MP Forums Archive
Dialog: Where is The Wrong - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog: Where is The Wrong (/showthread.php?tid=162496)



Dialog: Where is The Wrong - HACKHERS - 23.07.2010

pawn Код:
if(dialogid == 35)
        {
            if(!strlen(inputtext)) return SendClientMessage(playerid, COLOR_RED, "Error:Yatırcağınız Parayı Yazmadınız.");
            new giveplayer[MAX_PLAYER_NAME];
            new giveplayerid;
            if(PlayerInfo[playerid][pLevel] < 3)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You must be level 3 !");
                return 1;
            }
            if(!strlen(inputtext))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [OyuncuID/IsmininBirParзası] [amount]");
                return 1;
            }
            giveplayerid = ReturnUser(inputtext);
            if(!strlen(inputtext))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /transfer [OyuncuID/IsmininBirParзası] [amount]");
                return 1;
            }
            new moneys = strval(inputtext);
            if (IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

                    new playermoney = PlayerInfo[playerid][pAccount] ;
                    if (moneys > 0 && playermoney >= moneys)
                    {
                        PlayerInfo[playerid][pAccount] -= moneys;
                        PlayerInfo[giveplayerid][pAccount] += moneys;
                        format(string, sizeof(string), "   You have transferd $%d to %s's account", moneys, giveplayer,giveplayerid);
                        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_GRAD1, string);
                        format(string, sizeof(string), "   You have recieved $%d to into your account from %s", moneys, sendername, playerid);
                        SendClientMessage(giveplayerid, COLOR_GRAD1, string);
                        if(moneys >= 99999)
                        {
                            format(string, sizeof(string), "[PETER]: %s transferd $%d to %s", sendername, moneys, giveplayer);
                            SendAdminMessage(COLOR_YELLOW,string);
                        }
                        new y, m, d;
                        new h,mi,s;
                        getdate(y,m,d);
                        gettime(h,mi,s);
                        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /transfer %s $%d",d,m,y,h,mi,s,sendername,giveplayer,moneys);
                        PayLog(string);
                        PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "   Invalid transaction amount.");
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "   %d is not an active player.", giveplayerid);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
Where is The False there is nothing error but when I Write Any Think its Always Says 65335 is not an active player.


Re: Dialog: Where is The Wrong - HACKHERS - 24.07.2010

Any Answer?