Problem
#1

Hey I'm a beginner scripter and I tried to modify /pstats a bit on SeifAdmin.

pawn Код:
if(strcmp(cmd, "/stats", true) == 0) // See a players stats
        {
          tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) return SendClientMessage(playerid, ORANGE, "USAGE: /stats [playername/id]");
            new targetid = ReturnUser(tmp);
            if (targetid != INVALID_PLAYER_ID)
            {
                new Float:health,Float:armor;
                GetPlayerHealth(targetid,health);
                GetPlayerArmour(targetid,armor);
            GetPlayerName(targetid, giveplayername, sizeof(giveplayername));
                format(string, sizeof(string), "=[Pure Everything Stats For %s]=",giveplayername, health,GetPlayerMoney(targetid),AccountInfo[targetid][Warns],armor);
                SendClientMessage(playerid,RED,string);
                if(AccountInfo[giveplayerid][Logged] == 1) SendClientMessage(playerid, PURPLE, "=[Logged In: Yes]=");
                else if(AccountInfo[giveplayerid][Logged] == 0) SendClientMessage(playerid, PURPLE, "=[Logged In: No]=");
                format(string, sizeof(string), "=[AdminLevel:%d]",AccountInfo[AdminLevel]);
                SendClientMessage(playerid,RED,string);
            }
            else SendClientMessage(playerid, RED, "Player is not active.");
        }
        return 1;
So, Thats what I had did so far so i decided to test that, I couldn't /login even though I got 0 errors
this is all that comes up
Код:
\filterscripts\SeifAdmin.pwn(1977) : warning 217: loose indentation
\filterscripts\SeifAdmin.pwn(1992) : warning 213: tag mismatch
\filterscripts\SeifAdmin.pwn(1997) : warning 217: loose indentation
\filterscripts\SeifAdmin.pwn(1998) : warning 225: unreachable code
\filterscripts\SeifAdmin.pwn(1998) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Plz help I want to get this working so I can try to add more
oh by the way I removed the IsPlayerAdmin cause i wanted to make it into a cmd that players could do.
Reply


Messages In This Thread
Problem - by ryoere2k8 - 18.03.2009, 19:57
Re: Problem - by ryoere2k8 - 18.03.2009, 19:58
Re: Problem - by ryoere2k8 - 18.03.2009, 20:13
Re: Problem - by ryoere2k8 - 18.03.2009, 20:32
Re: Problem - by Pyrokid - 18.03.2009, 20:35
Re: Problem - by Danut - 18.03.2009, 20:44
Re: Problem - by Pyrokid - 18.03.2009, 20:46
Re: Problem - by Danut - 18.03.2009, 20:47
Re: Problem - by Pyrokid - 18.03.2009, 20:49
Re: Problem - by ryoere2k8 - 18.03.2009, 21:23

Forum Jump:


Users browsing this thread: 5 Guest(s)