Writing string into variable(enum)
#6

or you could just use format:
try this
pawn Код:
if(dialogid == DPORIJEKLO){
        if(!response) return KickWithMessage(playerid, RED, "Morate izabrati drzavu iz koje dolazite kako biste se registrovali(Kickovani ste!)");
        if(response){
            if(listitem == 0){
                format(pInfo[playerid][pPorijeklo], 128, "Hrvatska");;
                PlayerTextDrawSetString(playerid, registracija[11][playerid], "Hrvatska");
            }
        }
    }
----------------------------

Edit: I think you can simply do that:
pawn Код:
pInfo[playerid][pPorijeklo] = "Hrvatska"; //= add "" to Hrvatska
I believe that format is the best solution (first suggestion)
Reply


Messages In This Thread
Writing string into variable(enum) - by hrasch - 15.08.2014, 20:38
Re: Writing string into variable(enum) - by Virtual1ty - 15.08.2014, 21:38
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 09:08
Re: Writing string into variable(enum) - by CutX - 16.08.2014, 09:14
Re: Writing string into variable(enum) - by Virtual1ty - 16.08.2014, 09:20
Re: Writing string into variable(enum) - by Sarra - 16.08.2014, 09:25
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 09:54
Re: Writing string into variable(enum) - by Sarra - 16.08.2014, 10:10
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 10:17
Re: Writing string into variable(enum) - by hrasch - 16.08.2014, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)