sscanf special characters
#6

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
/t88ta ?
/t88ta <playerid> ?
i cant really understand. what is t88ta ? o.O
This is an example. Ingame I can use this only as /kontrolliv88d, but instead I would like to use it as /kontrollivццd. And yes, it is possible.
PHP код:
CMD:kontrolliv88d(playeridparams[])
{
    new 
otherId;
    if(
sscanf(params"u"otherId)) return SendClientMessage(playeridCOLOR_GREY"KASUTUS: /kontrollivццd [MдngijaID]");
    if(
otherId == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_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.0playeridotherId))
        {
            new 
silo[86];
            if(
KasutajaInfo[otherId][pSeatbelt]== 0)
            {
                
silo "lahti";
            }
            else if(
KasutajaInfo[otherId][pSeatbelt] == 1)
            {
                
silo "kinni";
            }
            
SFM(playeridCOLOR_GREY"%s turvavцц on %s."Nimi(otherId), silo);
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY"See mдngija ei ole su juures!");
        }
    }
    else
    {
        
SendClientMessage(playerid,COLOR_GREY"Sa ei ole Politseinik!");
    }
    return 
1;

Reply


Messages In This Thread
sscanf special characters - by King Ace - 26.12.2012, 17:03
Re: sscanf special characters - by Strier - 26.12.2012, 18:16
Re: sscanf special characters - by King Ace - 26.12.2012, 18:24
Re: sscanf special characters - by Devilxz97 - 26.12.2012, 18:28
Re: sscanf special characters - by Konstantinos - 26.12.2012, 18:28
Re: sscanf special characters - by King Ace - 26.12.2012, 18:32
Re: sscanf special characters - by AndreT - 26.12.2012, 18:46
Re: sscanf special characters - by King Ace - 26.12.2012, 18:56
Re: sscanf special characters - by AndreT - 26.12.2012, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)