[Pomoc]Kredita

Započeo Erorche, April 02, 2012, 19:05:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moje izrade
Detaljan opis problema: zasto mi neradi Kredita na telefonima ? to pTelefonKredit
Dio skripte:
if(strcmp(cmd, "/call", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
            if(PlayerInfo[playerid][pTelefonKredit] > 0)
        {
SendClientMessage(playerid, COLOR_WHITE, "GRESKA:Nemate kredit");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /call [broj]");
SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /calllist (for a list for short numbers)");
return 1;
}
if(PlayerInfo[playerid][pPnumber] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "  Nemate telefon!");
return 1;
}
GetPlayerNameEx(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s je uzeo mobitel iz dzepa.", sendername);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new phonenumb = strval(tmp);
if(phonenumb == PlayerInfo[playerid][pPnumber])
{
SendClientMessage(playerid, COLOR_GRAD2, "  Zauzeto je...");
return 1;
}
if(Mobile[playerid] != 255)
{
SendClientMessage(playerid, COLOR_GRAD2, "  Vec zovete nekog...");
return 1;
}
foreach (Player, i)
{
if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
{
giveplayerid = i;
Mobile[playerid] = giveplayerid; //caller connecting
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        if(PhoneOnline[giveplayerid] > 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "Trenutni korisnik je nedostupan molimo nazovite kasnije...");
            return 1;
        }
if (Mobile[giveplayerid] == 255)
{
format(string, sizeof(string), "Zvoni vam mobite, kucajte (/pickup da se javite) Pozivatelj: %s", sendername);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
RingTone[giveplayerid] = 10;
format(string, sizeof(string), "* %s mobitel zvoni.", sendername);
SendClientMessage(playerid, COLOR_WHITE, "Podjsetnik: Sada koristite ~ ili T da pricate preko telefona, kucajte /hangup ili /h da prekinete");
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
CellTime[playerid] = 1;
return 1;
}
}
}
}
}
SendClientMessage(playerid, COLOR_GRAD2, "  Zauzeto je...");
        }
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: April 02, 2012, 19:06:11 POSLE PODNE od tonchi ;)
Macedonia <3 !

RJESIO SAM KATANAC !
Macedonia <3 !