03.07.2016, 17:41
no no no
i need create by this code:
what from the string get text
if i have pinfo[ playerid ] [ job ] = 0;
when i write command /job i see this :
You job is: Mechanikas or other job.
i need create by this code:
Код:
COMMAND:job( playerid, params[ ] ) { new CharKintamasis; switch( CharKintamasis ) { case 0: CharKintamasis = "Bedarbis"; case 1: CharKintamasis = "Mechanikas"; case 2: CharKintamasis = "Policijos Pareigūnas"; } // my cmds... format( mystring, 100, "You job is: %s", CharKintamasis ); SendClientMessage.... return 1; }
if i have pinfo[ playerid ] [ job ] = 0;
when i write command /job i see this :
You job is: Mechanikas or other job.