31.10.2016, 16:30
Hello guys, I did a system for my server, but he presents a problem...
Firstly I want to say sorry for my english, because I'm brazilian...
Okay, so let's start.
All the command works perfectly, but the player's name, instead of appearing in charge, appears only (....)
Command Code:
CarData Enum:
Firstly I want to say sorry for my english, because I'm brazilian...
Okay, so let's start.
All the command works perfectly, but the player's name, instead of appearing in charge, appears only (....)
Command Code:
PHP код:
CMD:searchplate(playerid, params[])
{
static
id = 0;
if (GetFactionType(playerid) != FACTION_POLICE)
return SendErrorMessage(playerid, "You needs be a cop.");
if (sscanf(params, "d", id))
return SendSyntaxMessage(playerid, "/serachplate [vehicleid]");
if (!IsValidVehicle(id) || Car_GetID(id) == -1)
return SendErrorMessage(playerid, "You specified an invalid ID.");
Dialog_Show(playerid, InfoCarro, DIALOG_STYLE_MSGBOX, "LOS SANTOS POLICE DEPARTMENT", "This vehicle is owned by %s. Thank you for making the query.\n\nLOS SANTOS POLICE DEPARTMENT", "Ok", "", CarData[id][carOwner]);
return 1;
}
PHP код:
enum carData {
carID,
carExists,
carModel,
carOwner,
Float:carPos[4],
carColor1,
carColor2,
carPaintjob,
carLocked,
carMods[14],
carImpounded,
carImpoundPrice,
carFaction,
carWeapons[5],
carAmmo[5],
carVehicle
};