26.10.2012, 13:35
So nobody can help me? I'll post my script here.
I don't have a faction scripted in, I don't know if this may of what caused the problem. Could somebody point out to me what is wrong and should I change with the script please?
pawn Code:
CMD:ShowSDIdentity(playerid, params[])
{
new giveplayerid,string[128],string2[128];
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ShowSDIdentity");
if (PlayerInfo[playerid][pMember]== 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(IsPlayerConnected(giveplayerid))
{
SendClientMessageEx(giveplayerid, COLOR_BLUE, "--------------------------------------------------------------------");
format(string, sizeof(string), "Deputy Sheriff %s is a Sworn member of Bone County Sheriff's Department");
SendClientMessageEx(giveplayerid, COLOR_BLUE, string); //The /ShowSDIdentity cannot read the "sscanf" file, again.
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Current Assignment: General Duties");
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Under Authority of the San Andreas County Goverment");
SendClientMessageEx(giveplayerid, COLOR_DARKGREEN, "Official has the Authority to arrest, and assist in arrests.");
SendClientMessageEx(giveplayerid, COLOR_BLUE, "--------------------------------------------------------------------");
format(string, sizeof(string), "You have shown you're Sheriff's Department Identity Card to %s", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string2);
}
else
{
SendClientMessageEx(playerid, COLOR_RED, "Invaild_ID!");
}
}
else
{
SendClientMessageEx(playerid, COLOR_RED, "You do not currently posse a Official Sheriff Department Identity Card!");
}
return 1;