25.02.2014, 19:57
either the cmd says unknown cmd or the server crashes, its so bugged, can someone fix it please.
pawn Код:
CMD:showlicense(playerid, params[])
{
new playerb, string[128];
if(sscanf(params,"u",playerb)) return SendClientMessage(playerid,-1,"Usage: /showlicenses [id]");
format(string, sizeof(string),"%s's Licenses | {FFFFFF} [ %s ] ", NAMEGET(playerid),pLicenses(playerid));
return 1;
}
pawn Код:
stock pLicenses(playerid)
{
new svString[120];
switch (PInfo[playerid][pDriver])
{
case 1: svString = "Licenses not Valid.";
case 2: svString = "Licenses is Valid.";
}
pawn Код:
stock NAMEGET(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}