How to add the name to /duty and this object id.
#2

%i is for integers, aka numbers. %s is used to store strings. Your "Name" is also undefined.
pawn Код:
if (strcmp("/duty3s", cmdtext, true, 10) == 0)
{
    SetPlayerSkin(playerid,287);
    GivePlayerWeapon(playerid,24,100);
    GivePlayerWeapon(playerid,31,1000);
     SetPlayerColor(playerid,0xFF0808);
    new string[35];
    new name[24];
    format(string,sizeof(string),"General %s is Now onduty.",GetPlayerName(playerid,name,24));
    SendClientMessage(playerid,0xFFFFFAA,string);
    // player dead
    return 1;
}
Reply


Messages In This Thread
How to add the name to /duty and this object id. - by Gangster-rocks - 07.06.2012, 18:23
Re: How to add the name to /duty and this object id. - by zDevon - 07.06.2012, 18:27
Re: How to add the name to /duty and this object id. - by DartakousLien - 07.06.2012, 18:31
Re: How to add the name to /duty and this object id. - by zDevon - 07.06.2012, 18:39
Re: How to add the name to /duty and this object id. - by DartakousLien - 07.06.2012, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)