[pomoc] /portable ---> givehit

Započeo _HarDy_, Septembar 04, 2012, 23:47:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju korsitim : CLRP
Opis problema : e vako , imam na hitmanima /portable , i sada kada nekoga contractam , odem Contracts , i sada pise dostupna meta , ja kucam "givehit" i id igraca , i meni UVJEK izbaci "Taj Hitman nije online" iako jest..
al sta je jos zanimljivije, samo mi to izbaci na hostu , a na kucnom mi sve normalno :S
Moze pomoc?  ???
Dio skripte :

else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit")))
{
    if(PlayerInfo[playerid][pRank] < 4)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate biti Rank 4 da dodjelite mete Hitmanima !");
        return 0;
    }
    if(hitfound == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Trenutno nema pronadjenih meta, koristite prvo /portable pa zatim contracts !");
        return 0;
    }
    tmp = strtok(text, idx);
    if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koriscenje: Givehit [ID Igraca/Dio Imena]");
return 0;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[giveplayerid][pMember] == 8 || PlayerInfo[giveplayerid][pLeader] == 8)
    {
    if(GoChase[giveplayerid] < 999)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Taj Hitman ima vec dodjeljenu metu !");
return 0;
    }
    if(IsPlayerConnected(hitid))
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giver, sizeof(giver));
        GetPlayerName(hitid, giveplayer, sizeof(giveplayer));
        //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(playerid, COLOR_YELLOW, string);
        //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]);
    //SendClientMessage(giveplayerid, COLOR_YELLOW, string);
    format(string, sizeof(string), "* Hitman %s, je dodjelio Hitmanu %s-u da ubije: %s(ID:%d), za $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    GoChase[giveplayerid] = hitid;
    GetChased[hitid] = giveplayerid;
    GotHit[hitid] = 1;
    hitid = 0;
    hitfound = 0;
        return 0;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Meta je trenutno offline, potrazite nove !");
        return 0;
    }
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije clan Hitmana !");
return 0;
}
}
return 0;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Taj Hitman nije online !");
    return 0;
}
}


Molim vas POMOCCCC
Moji Radiovi!
TuT||Iz code u MTA