Need help fast. +1 rep
#1

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;
}
Reply


Messages In This Thread
Need help fast. +1 rep - by Jesper00 - 25.02.2014, 19:57
Re: Need help fast. +1 rep - by Blademaster680 - 25.02.2014, 20:01
Re: Need help fast. +1 rep - by Jesper00 - 25.02.2014, 20:01
Re: Need help fast. +1 rep - by Blademaster680 - 25.02.2014, 20:03
Respuesta: Need help fast. +1 rep - by CuervO - 25.02.2014, 20:07
Re: Need help fast. +1 rep - by Abagail - 25.02.2014, 20:21
Re: Need help fast. +1 rep - by FilesMAker - 25.02.2014, 20:26
Re: Need help fast. +1 rep - by Threshold - 25.02.2014, 22:29

Forum Jump:


Users browsing this thread: 2 Guest(s)