Need help ! ^^
#9

firs of all you need to know what sscnf do.
it reads string and replaces it in your defined params, so sscanf2:
pawn Код:
if(dialogid == 9991)
    {
        if(response)
        {
            new gsendid;
            new string[256];
            new PlayerName[MAX_PLAYER_NAME];
            GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
            if (sscanf(inputtext, "u", gsendid))
            if(gsendid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
            else
            {
                format(string,sizeof(string),"Admin %s {3333FF}has make | NEW CHAINSAW ZOMBIE |!{663333} Watch color on map!",PlayerName);
                SendClientMessageToAll(COLOR_LIGHTBLUE,string);
                format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
                GameTextForAll( string, 5000, 3 );
                ResetPlayerWeapons(playerid);
                GivePlayerWeapon(gsendid, 9, 999);
                Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
                Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
                SetPlayerHealth(gsendid, 999);
                SetPlayerColor(gsendid, 0xFF6600AA);
                SetPlayerSkin(gsendid, 137);
                Delete3DTextLabel( Knife[ playerid ] );
                Delete3DTextLabel( Dildo[ playerid ] );
                Delete3DTextLabel( Shovel[ playerid ] );
                return 1;
            }
        }
    }
    return 0;
}
I dont want to understand what your function will do but remember to replace playerid to gsendid in arrays/3D label creating etc...

I guess you will need
pawn Код:
Zombie[ gsendid] = Create...
Reply


Messages In This Thread
Little Dialog Help :D - by Gertin - 07.03.2011, 14:53
Re: Need help ! ^^ - by Scrip - 07.03.2011, 15:06
Re: Need help ! ^^ - by Gertin - 07.03.2011, 15:37
Re: Need help ! ^^ - by GaGlets(R) - 07.03.2011, 15:57
Re: Need help ! ^^ - by Gertin - 07.03.2011, 16:11
Re: Need help ! ^^ - by Gertin - 08.03.2011, 11:43
Re: Need help ! ^^ - by Stigg - 08.03.2011, 11:46
Re: Need help ! ^^ - by Gertin - 08.03.2011, 12:01
Re: Need help ! ^^ - by GaGlets(R) - 08.03.2011, 14:37
Re: Need help ! ^^ - by Gertin - 08.03.2011, 15:56

Forum Jump:


Users browsing this thread: 3 Guest(s)