07.01.2018, 14:56
Hello! I'm have a problem...
When i'm type /mycars
i'm see a message in chat:
But my server have this command:
Why?
+1 for help!
When i'm type /mycars
i'm see a message in chat:
Код:
Server:Unknown command.
Код:
dcmd_mycars(playerid, params[])
{
#pragma unused params
new namec[MAX_PLAYER_NAME], string[MAX_STRING];
GetPlayerName(playerid, namec, sizeof(namec));
carsshow[playerid] = 0;
if(AccountInfo[playerid][Vehicule] == 0) return SCM(playerid, ERROR, "Nu ai nici-un vehicul !");
for(new i = buyablecars; i<sizeof(VehInfo); i++)
{
if(strcmp(VehInfo[i][Propietar], namec, true) == 0)
{
if(carsshow[playerid] <= AccountInfo[playerid][Vehicule])
{
GetVehicleName(i);
new value = VehInfo[i][Valoare]%2;
new Neontxt[10], Statustxt[10];
if(VehInfo[i][Neon] >= 1) { Neontxt = "Da"; }
else if(VehInfo[i][Neon] == 0) { Neontxt = "Nu"; }
if(VehInfo[i][Inchisa] == 0) { Statustxt = "Nu"; }
else if(VehInfo[i][Inchisa] == 1) { Statustxt = "Da"; }
format(string,sizeof(string), "ID: %d, Model: %s Valoare: %d, Neon: %s, Inchisa: %s, Kilometrii: %d", i, VehicleNames[GetVehicleModel(i)-400], value, Neontxt, Statustxt, VehInfo[i][Km]);
SCM(playerid,COLOR_YELLOW,string); carsshow[playerid] += 1;
format(string,sizeof(string), "Vehicule: %d | Sloturi pentru vehicule: %d", AccountInfo[playerid][Vehicule], AccountInfo[playerid][MaxVeh]);
SCM(playerid,COLOR_YELLOW,string);
}
}
carsshow[playerid] = 0;
}
return 1;
}
+1 for help!


