29.12.2013, 15:23
Hi,
I've scripted a /myvehiclelist command and everything works fine. But it outputs "Server : Unknown Command" aswell! Not sure how to fix it any help?
Photo :
Script :
Thanks!
I've scripted a /myvehiclelist command and everything works fine. But it outputs "Server : Unknown Command" aswell! Not sure how to fix it any help?
Photo :

Script :
PHP код:
COMMAND:myvehiclelist(playerid, params[])
{
SendClientMessage(playerid, -1, "{F0354E}----------------------------");
for(new i = 1; i < sizeof(VehicleInfo); i++)
{
new string[258];
if(!strcmp(VehicleInfo[i][vOwner], PlayerName(playerid), false))
{
format(string, sizeof(string), "- %s (ID : %d)", GetVehicleName(i), i);
SendClientMessage(playerid, -1, string);
}
else
{
SendClientMessage(playerid, -1, "You don't own any vehicles!");
}
}
return 1;
}