[HELP] strange problem [sscanf]
#1

Hello. So I have type /check and my id 0 and it says player:Luca admin check: luca that's ok but the problem is

I use in that command getplayerpos(id ,x,y,z) and know all of that poz is 0 money in the bank is 0 also like the level and health if you know what mean but there's no error in server log and I have last update sscanf and this is work five days ago. thanks
Reply
#2

show us the full comand code.
Reply
#3

pawn Код:
CMD:check(playerid,params[])
{
    if(PlayerInfo[playerid][Admin] >= 1 || IsPlayerAdmin(playerid))
    {
        new id,hIme[2][MAX_PLAYER_NAME],ip[50],Float:hp,Float:Poz[3],ipz[50],status[128],minut,sat,dan,mjesec,godina;
        if(sscanf(params,"u",id)) return SCM(playerid,COLOR_GRAD3,"{FFAF00}Use: {FFFFFF}/check [ID or Player Name]");
        if(!IsPlayerConnected(id)) return SCM(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}Wrong id/name of player!");
        RPName(id,hIme[0]);
        RPName(playerid,hIme[1]);
        GetPlayerIp(playerid,ip,50);
        GetPlayerHealth(id,hp);
        GetPlayerIp(id,ipz,50);
        GetPlayerPos(id,Poz[0],Poz[1],Poz[2]);
        gettime(sat,minut);
        getdate(godina,mjesec,dan);
        if(GetPlayerState(id) == 0) status = "N/A";
        else if(GetPlayerState(id) == 1) status = "Na nogama";
        else if(GetPlayerState(id) == 2) status = "U vozilu";
        else if(GetPlayerState(id) == 3) status = "Putnik";
        else if(GetPlayerState(id) == 4) status = "Izlazi iz vozila";
        else if(GetPlayerState(id) == 5) status = "Ulazi kao vozac";
        else if(GetPlayerState(id) == 6) status = "Ulazi kao putnik";
        else if(GetPlayerState(id) == 7) status = "Iscrpljen";
        else if(GetPlayerState(id) == 8) status = "Spawn";
        else if(GetPlayerState(id) == 9) status = "Recon";
        SCMF(playerid,0xDB023EFF,"__Player: %s___________________________________________________________ Provjera____V0.3______",hIme[0]);
        SCMF(playerid,COLOR_BIJELA,"Health: (%.1f) | Money: (%d) | Bank: (%d) | Status (%s)",hp,PlayerInfo[id][Novac],PlayerInfo[id][Banka],status);
        SCMF(playerid,COLOR_BIJELA,"Positions: Xpoz: (%.1f) | Ypoz: (%.1f) | Zpoz: (%.1f)",Poz[0],Poz[1],Poz[2]);
        SCMF(playerid,COLOR_BIJELA,"Level: [%d] | SpawnHealth: (50.0) || Player ip: (%s) ||Warning: [%d]",PlayerInfo[id][Level],ipz,PlayerInfo[id][Warning]);
        SCMF(playerid,COLOR_BIJELA,"Date: %d.%d.%d | Time: %d:%d",dan,mjesec,godina,sat,minut);
        SCMF(playerid,0xDB023EFF,"_____________________________________________________________________ Admin Check: %s ____",hIme[1]);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: