About stats command.... (need help)
#1

So here is my stats command and it giving errors:
pawn Код:
(649) : error 029: invalid expression, assumed zero
(649) : warning 215: expression has no effect
(649) : error 001: expected token: ";", but found ")"
(649) : error 029: invalid expression, assumed zero
(649) : fatal error 107: too many error messages on one line
And here is cmd
pawn Код:
YCMD:stats(playerid,params[],help)
{
    if(IsPlayerConnected(playerid))
    {
        new Passw = pInfo[playerid][Pass];
        new Admins = pInfo[playerid][Admin];
        new Vips = pInfo[playerid][Vip];
        new Respects = pInfo[playerid][Respect];
        new Moneys = pInfo[playerid][Money];
        new Killss = pInfo[playerid][Kills];
        new Deathss = pInfo[playerid][Deaths];
        new Arresteds = pInfo[playerid][Arrested];
        new Jaileds = pInfo[playerid][Jailed];
        new Kickeds = pInfo[playerid][Kicked];
        new Banneds = pInfo[playerid][Banned];
        new Joineds = pInfo[playerid][Joined];
        new Members = pInfo[playerid][Member];
        new Leaders = pInfo[playerid][Leader];
        new Houses = pInfo[playerid][House];
        new Cars = pInfo[playerid][Car];
        new Keyss = pInfo[playerid][Keys];
        new Keys1s = pInfo[playerid][Keys1];
        new Keys2s = pInfo[playerid][Keys2];
        new Keys3s = pInfo[playerid][Keys3];
        new Keys4s = pInfo[playerid][Keys4];
        new Warneds = pInfo[playerid][Warned];
        new Tickets = pInfo[playerid][Ticket];
        new JoinedEvents = pInfo[playerid][JoinedEvent];
        new Cookies = pInfo[playerid][Cookie];
        new Skins = pInfo[playerid][Skin];
        new Citys = pInfo[playerid][City];
        new Scoress = pInfo[playerid][Scores];
        new Fightings = pInfo[playerid][Fighting];
        new Ages = pInfo[playerid][Age];
        new Religions = pInfo[playerid][Religion];
        new Educations = pInfo[playerid][Education];
        new string[500];
        format(string,sizeof(string),"Password: %s | Admin: %d | Vip: %d | Respect: %d | Money: %d | Kills: %d | Deaths: %d |",Passw,Admins,Vips,Respects,Moneys,Killss,Deathss);
        format(string,sizeof(string),"Arrested: %d | Jailed: %d | Kicked: %d| Banned: %d| Joined: %d| Member: %d| Leader: %d|",Arresteds,Jaileds,Kickeds,Banneds,Joineds,Members,Leaders);
        format(string,sizeof(string),"House: %d| Car: %d| Key: %d| Key1: %d| Key2: %d| Key3: %d| Key4: %d| Events: %d| Warns: %d| Tickets: %d| Cookies: %d|",Houses,Cars,Keyss,Keys1s,Keys2s,Keys3s,Keys4s,JoinedEvents,Warneds,Tickets,Cookies);
        format(string,sizeof(string),"Skin: %d| City: %d| Scores: %d| Fighting: %d| Age: %d| Religion: %d| Education: %d|",Skins,Citys,Scoress,Fightings,Ages,Religions,Educations);
        SendClientMessage(playerid,COLOR_WHITE,string);//This line is giving errors...
    }
    return 1;
}
Thought what could be wronk more then 2 h but cant think nothing out...
Reply


Messages In This Thread
About stats command.... (need help) - by Scrillex - 25.02.2013, 20:22
Re: About stats command.... (need help) - by Mystique - 25.02.2013, 20:28
Re: About stats command.... (need help) - by Scrillex - 25.02.2013, 20:30
Re: About stats command.... (need help) - by Mystique - 25.02.2013, 20:36
Re: About stats command.... (need help) - by Scrillex - 25.02.2013, 20:38
Re: About stats command.... (need help) - by Mystique - 25.02.2013, 20:43
Re: About stats command.... (need help) - by Scrillex - 25.02.2013, 20:46
Re: About stats command.... (need help) - by Mystique - 25.02.2013, 21:01
Re: About stats command.... (need help) - by Mystique - 25.02.2013, 21:04
Re: About stats command.... (need help) - by Scrillex - 25.02.2013, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)