/robplayer help
#5

I have a problem:
Lines:
pawn Код:
if(strcmp(cmd, "/robplayer", true) == 0)
{
    if(gPlayerLogged[playerid] == 0)
        return SendClientMessage(playerid, COLOR_GREY, " Nu te-ai logat!");

    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    return SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /robplayer [IDJucator/PARTEdinNUME]");

    if(PlayerRobbed == 1)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "Ai jefuit deja un jucator.");
        return 1;
    }
    new cash = GetPlayerMoney(playerid);
    new Float:steal = cash * 0.10;
    new Nume1[30];
    new Nume2[30];
    new para2;
    para2 = strval(tmp);
    GetPlayerName(playerid, Nume1, sizeof(Nume1));
    GetPlayerName(para2, Nume2, sizeof(Nume2));
    PlayerRob[playerid] = 1;
    PlayerRobTime[playerid] = 30;
    PlayerRobbed = 1;
    WantedLevel[playerid] = 10;
    PlayerInfo[playerid][pSuspect] = 10;
    format(string, sizeof(string), "* %s intinde mana si-i i-a portofelul lui lui %s (%d RON ).", Nume1,Nume2,steal);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerMoney(playerid,floatround(steal))

        for(new i; i < MAX_PLAYERS; i++)
        if(IsACop(i))
        {
            new anuntpd[256];
            format(anuntpd, sizeof(anuntpd), "DISPECER: Toate unitatile, %s este suspectat de jefuirea lui %s!",Nume1,Nume2);
            SendClientMessage(i, TEAM_BLUE_COLOR, anuntpd);
        }

    return 1;
}
And the error i think:


Uploaded with ImageShack.us

The problem is that the string is not showing the stolen money,but amplified.
It's showing a 105376334 number instead of 1 as an example
Reply


Messages In This Thread
/robplayer help - by calin1996 - 14.05.2012, 15:38
Re: /robplayer help - by mgd - 14.05.2012, 15:46
Re: /robplayer help - by calin1996 - 14.05.2012, 16:09
Re: /robplayer help - by ViniBorn - 14.05.2012, 16:35
Re: /robplayer help REp+ - by calin1996 - 15.05.2012, 12:30
Re: /robplayer help - by calin1996 - 15.05.2012, 14:24
Re: /robplayer help - by calin1996 - 15.05.2012, 16:56
Re: /robplayer help - by WooTFTW - 15.05.2012, 17:52
Re: /robplayer help - by calin1996 - 16.05.2012, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)