/veh help.
#7

I'v messed with it a bit so it might be a little wrong. I'm only a beginner. :P

pawn Код:
CMD:vehname(playerid, params[])  
{

        SendClientMessage(playerid, COLOR_TEAL, "--------------------------------------------------------------------------------------------------------------------------------");
        SendClientMessage(playerid, COLOR_WHITE, "Vehicle Search:");

        new
            rcount,
            string[128];

        if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "No keyword specified.");
        if(strlen(params) < 3) return SendClientMessage(playerid, COLOR_GREY, "Search keyword too short.");
        {
        for(new v; v < sizeof(VehNames); v++) {
            if(strfind(VehNames[v], params, true) != -1) {
            {
                if(rcount == 0) format(string, sizeof(string), "%s (ID %d)", VehNames[v], v+400);
                else format(string, sizeof(string), "%s | %s (ID %d)", string, VehNames[v], v+400);

                rcount++;
            }
            if(rcount == 0) SendClientMessage(playerid, COLOR_GREY, "No results found.");

            else if(strlen(string) >= 128) SendClientMessage(playerid, COLOR_GREY, "Too many results found.");

            else SendClientMessage(playerid, COLOR_WHITE, string);

            SendClientMessage(playerid, COLOR_TEAL, "--------------------------------------------------------------------------------------------------------------------------------");
        }
        return 1; // line 759
}
..... For some reason it is affecting another CMD: line.....
pawn Код:
CMD:adminpack(playerid, params[])    // line 761
{
    if(!IsPlayerAdmin(playerid))return 0;
    GivePlayerWeapon(playerid, 38, 10000 );
    SetPlayerArmour(playerid, 10000 );
    SetPlayerHealth(playerid, 10000 );
    return 1;
}
Errors:
Код:
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(759) : warning 217: loose indentation
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(761) : warning 217: loose indentation
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(761) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(761) : error 017: undefined symbol "cmd_adminpack"
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(761) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\Kush Mania\pawno\KM.pwn(761) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
/veh help. - by nogh445 - 14.01.2012, 21:30
Re: /veh help. - by BleverCastard - 14.01.2012, 21:32
Re: /veh help. - by BleverCastard - 14.01.2012, 21:34
Re: /veh help. - by BleverCastard - 14.01.2012, 21:42
Re: /veh help. - by nogh445 - 14.01.2012, 21:46
Re: /veh help. - by BleverCastard - 14.01.2012, 21:46
Re: /veh help. - by nogh445 - 14.01.2012, 21:49
Re: /veh help. - by BleverCastard - 14.01.2012, 21:53
Re: /veh help. - by nogh445 - 14.01.2012, 21:58
Re: /veh help. - by BleverCastard - 14.01.2012, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)