Not Working
#5

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
Replace your code with this one.

PHP код:
CMD:searchcar(playerid,params[])
{
    new 
idvp,ncar[128],StringSECH[1140],STRCCHAR[1140];
    if(
sscanf(params,"s[128]",ncar)) return SendClientMessage(playerid,red,"Use: /searchcar [carname]");
    
idvp GetVehicleModelIDFromName(ncar);
    for(new 
i=0;i<MAX_VEHICLES;i++)
    {
        if(
VehicleInfo[playerid][Model] == idvp && VehicleInfo[playerid][Temp] == false)
        {
            
format(StringSECH,sizeof(StringSECH),"{FFFAFA}Vehicle:{00FF00} %s | {FFFAFA}Owner:{00FF00} %s\n",VehicleName[GetVehicleModel(i)-400],VehicleInfo[i][owner],i);
            
strcat(STRCCHAR,StringSECH);
        }
        else
        {
            
ShowPlayerDialog(playerid,601,DIALOG_STYLE_MSGBOX ,"{FFFF00}Search Car",STRCCHAR"Ok""");
        }
    }
    return 
1;

It says Use: /searchcar [carname] even i type /searchcar infernus
Reply


Messages In This Thread
Not Working - by Filbert - 19.05.2018, 23:19
Re: Not Working - by kovac - 19.05.2018, 23:22
Re: Not Working - by Filbert - 19.05.2018, 23:50
Re: Not Working - by JasonRiggs - 20.05.2018, 00:16
Re: Not Working - by Filbert - 21.05.2018, 07:24
Re: Not Working - by Filbert - 21.05.2018, 07:44
Re: Not Working - by Filbert - 21.05.2018, 07:47
Re: Not Working - by Filbert - 21.05.2018, 09:32
Re: Not Working - by DarkSkull - 21.05.2018, 12:51
Re: Not Working - by Filbert - 21.05.2018, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)