[POMOC]/putmoney

Započeo dragan12, April 03, 2011, 18:05:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

dragan12

Skripta koju koristim:FactionGame
Detaljan opis problema: Radio sam komandu za org za sefove i sada kada kucam /putmoney 1000 on to stavi ali meni neskida taj novac evo jedan deo komande pa ako neko zna sta treba da menjam:
if(strcmp(cmd,"/putmoney",true)==0) // By Ellis
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /putmoney [kolicina]");
            return 1;
        }
        new mammount;
        mammount = strval(tmp);
        if(mammount > PlayerInfo[playerid][pCash]) { SendClientMessage(playerid, COLOR_GREY, "   Nemate toliko novca kod sebe."); return 1; }
if(PlayerToPoint(4.0, playerid,1263.4899,-795.5519,1084.0078))
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{//Gusari

PlayerInfo[playerid][pCash] -= mammount; lova[lcnmoney] += mammount;
format(string, sizeof(string), "Spremili ste %d novca!", mammount);
SendClientMessage(playerid, COLOR_GREY, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja paket novca u sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste clan mafije/bande!");
}
}
else
{
    SendClientMessage(playerid,COLOR_WHITE,"Niste blizu sefa!");
}
SacuvajNovac();
    }
    return 1;
}

Nisi stavio da makne igracu novac? Ne kontam se bas u skriptanje ali uocio sam...

SafeGivePlayerMoney(playerid,-mammount);
To si zaboravio.

dragan12

Citat: $--L84S--$ poslato April 03, 2011, 18:18:55 POSLE PODNE
SafeGivePlayerMoney(playerid,-mammount);
To si zaboravio.
E hvala sada vidim i ja. Moze lock