toupper
#1

pawn Код:
new targetid, license[6], str[128];
        if(sscanf(params, "us[6]", targetid, license)) return SendClientMessage(playerid, COLOR_SACBLUE, "Usage: /issuelic [playerid] [license type]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "(ERROR) Invalid playerid.");

        format(str, sizeof(str), "(DMV) You have issued %s Driver's License Class %s.", GetPName(targetid), toupper(license[0]));
Let's say I enter "c" for the license type, this string is returning "(DMV) You have issued John_Doe Driver's License Class CJohn_Doe. Am I using toupper incorrectly?
Reply


Messages In This Thread
toupper - by austin070 - 09.09.2014, 19:13
Re: toupper - by [XST]O_x - 09.09.2014, 19:17
Re: toupper - by austin070 - 09.09.2014, 19:27
Re: toupper - by Sledgehammer - 09.09.2014, 19:30
Re: toupper - by austin070 - 09.09.2014, 19:31
Re: toupper - by HazardouS - 09.09.2014, 19:32
Re: toupper - by Sledgehammer - 09.09.2014, 19:33
Re: toupper - by austin070 - 09.09.2014, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)