Insert a string into a variable
#3

Ahh of course, Cheers.

This gave me too many errors
pawn Код:
format(Business[playerid][bName],sizeof Business[playerid][bName], "%s", inputtext);
So I just used this instead
pawn Код:
format(Business[playerid][bName],50,inputtext);
Also when checking if the input was empty, how would I do that?

This gives me an error but must be something similar
pawn Код:
if(!strcmp(inputtext, 0, false))
                {
                    SendClientMessage(playerid, COLOR_GREY, "Please insert a name or return to the menu.");
                }
Guess I'd just use
pawn Код:
if(isnull(inputtext))
                {
                    SendClientMessage(playerid, COLOR_GREY, "Please insert a name or return to the menu.");
                }
Reply


Messages In This Thread
Insert a string into a variable - by Deal-or-die - 18.09.2012, 17:37
Re: Insert a string into a variable - by ViniBorn - 18.09.2012, 17:53
Re: Insert a string into a variable - by Deal-or-die - 18.09.2012, 18:18
Re: Insert a string into a variable - by Wesley221 - 18.09.2012, 18:55

Forum Jump:


Users browsing this thread: 2 Guest(s)