29.05.2012, 17:01
hey,
I made a Show license command.
but when i compile it it gives errors about not difined etc. from OTHER commands.
maybe someone sees the problem.
I made a Show license command.
but when i compile it it gives errors about not difined etc. from OTHER commands.
maybe someone sees the problem.
pawn Код:
command(sl, playerid, params[])
{
new id, string[128];
if(sscanf(params, "u", id))
{
if(Player[id][DriverLic] == 1){
format(string, sizeof(string), "------------[LICENSES]------------", GetName(playerid));
SendClientMessage(id, ORANGE, string);
format(string, sizeof(string), "Driver: Valid", GetName(playerid));
SendClientMessage(id, WHITE, string);
format(string, sizeof(string), "------------[LICENSES]------------", GetName(playerid));
}
else
{
if(Player[id][DriverLic] == 0)
{
format(string, sizeof(string), "------------[LICENSES]------------", GetName(playerid));
SendClientMessage(id, ORANGE, string);
format(string, sizeof(string), "Driver: Invalid", GetName(playerid));
SendClientMessage(id, WHITE, string);
format(string, sizeof(string), "------------[LICENSES]------------", GetName(playerid));
SendClientMessage(id, ORANGE, string);
}
return 1;
}