26.12.2012, 17:03
Since i need special characters in sscanf commands, how could I use them?
I've seen something like this.
ь = y
х = 6
ц = 8
д = 2
I've seen something like this.
ь = y
х = 6
ц = 8
д = 2
Specifier(s) Name Example values i, d Integer 1, 42, -10 c Character a, o, * l Logical true, false b Binary 01001, 0b1100 h, x Hex 1A, 0x23 o Octal 045 12 n Number 42, 0b010, 0xAC, 045 f Float 0.7, -99.5 g IEEE Float 0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E u User name/id (bots and players) ******, 0 q Bot name/id ShopBot, 27 r Player name/id ******, 42
/t88ta ?
/t88ta <playerid> ? i cant really understand. what is t88ta ? o.O |
CMD:kontrolliv88d(playerid, params[])
{
new otherId;
if(sscanf(params, "u", otherId)) return SendClientMessage(playerid, COLOR_GREY, "KASUTUS: /kontrollivццd [MдngijaID]");
if(otherId == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Mдngijat ei ole serveris");
if(GetPlayerState(otherId) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,COLOR_GREY,"See mдngija ei istu ьldse autos.");
if(IsACop(playerid))
{
if(ProxDetectorS(9.0, playerid, otherId))
{
new silo[86];
if(KasutajaInfo[otherId][pSeatbelt]== 0)
{
silo = "lahti";
}
else if(KasutajaInfo[otherId][pSeatbelt] == 1)
{
silo = "kinni";
}
SFM(playerid, COLOR_GREY, "%s turvavцц on %s.", Nimi(otherId), silo);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "See mдngija ei ole su juures!");
}
}
else
{
SendClientMessage(playerid,COLOR_GREY, "Sa ei ole Politseinik!");
}
return 1;
}
if(!strcmp(cmdtext, "/kontrollivццd", true))
{
cmd_kontrolliv88d(playerid, params);
}
if(!success)
{
for(new i = 0, j = strlen(cmdtext); i != j; i++)
{
if(cmdtext[i] == 'х') cmdtext[i] = '8';
else if(cmdtext[i] == 'ь') cmdtext[i] = 'y';
}
}