DB[playerid][Job]=strval("Unemployed");
#6

pawn Код:
DB[playerid][Job][0] = EOS; // Clearing the string
strcat(DB[playerid][Job], "Unemployed", 30); // Adding "unemployed" to the now empty string.
Or use the strcpy macro, then you can do it with just one line:

pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)

strcpy(DB[playerid][Job], "Unemployed", 30);
Reply


Messages In This Thread
DB[playerid][Job]=strval("Unemployed"); - by Lirbo - 22.07.2015, 17:01
AW: DB[playerid][Job]=strval("Unemployed"); - by BigBrainAFK - 22.07.2015, 17:08
Re: AW: DB[playerid][Job]=strval("Unemployed"); - by Lirbo - 22.07.2015, 17:16
AW: DB[playerid][Job]=strval("Unemployed"); - by Nero_3D - 22.07.2015, 17:29
Re: AW: DB[playerid][Job]=strval("Unemployed"); - by Lirbo - 22.07.2015, 19:36
Re: DB[playerid][Job]=strval("Unemployed"); - by kristo - 22.07.2015, 19:40
Re: DB[playerid][Job]=strval("Unemployed"); - by Lirbo - 22.07.2015, 20:46
Re: DB[playerid][Job]=strval("Unemployed"); - by OwlIT - 22.07.2015, 21:26
Re: DB[playerid][Job]=strval("Unemployed"); - by Lirbo - 22.07.2015, 21:34
Re: DB[playerid][Job]=strval("Unemployed"); - by xVIP3Rx - 22.07.2015, 21:42

Forum Jump:


Users browsing this thread: 4 Guest(s)