Family Info
#1

So i am creating family info command, so admins can check each family info, but i got some errors.

PHP код:
C:\Users\Euronics Latvija\Desktop\LCRP\gamemodes\nlrp.pwn(106395) : error 021symbol already defined"string"
C:\Users\Euronics Latvija\Desktop\LCRP\gamemodes\nlrp.pwn(106392) : warning 204symbol is assigned a value that is never used"string" 
My command:
PHP код:
    CMD:afstats(playeridparams[])
    {
        if(!(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pGangModerator])) { SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command."); return 1; }
        new 
string[128], familyid;
        if(
sscanf(params"d"familyid)) { SendClientMessage(playeridCOLOR_GREY"USAGE: /afstats [family]"); return 1; }
        if(
familyid || familyid 14) return SendClientMessageEx(playeridCOLOR_WHITE"Invalid Family Number.");
        new 
familystring[128];
        
familyid -= 1;
        
format(string256"Family: %s, Money: $%d, Mats: %d, Pot: %d, Crack: %d",
        
FamilyInfo[family][FamilyName], FamilyInfo[family][FamilyBank], FamilyInfo[family][FamilyMats], FamilyInfo[family][FamilyPot], FamilyInfo[family][FamilyCrack]);
        
SendClientMessage(playeridCOLOR_YELLOW2string);
        return 
1;
    } 
Reply


Messages In This Thread
Family Info - by FaZeRs - 06.02.2014, 17:53
Re: Family Info - by Wizzy951 - 06.02.2014, 18:00
Re: Family Info - by Vanter - 06.02.2014, 18:02
Re: Family Info - by DaniceMcHarley - 06.02.2014, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)