strlen(inputtext)
#5

Sizeof will be equal to 1 for 2d arrays unless using Zeex's compiler. Also, do not use format in case you have a single value to copy (single %s, %d, or %f)

For strings:

In case you don't have it:
pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0),%1)
Then use it like
pawn Код:
strcpy(PlayerInfo[playerid][pKey], temppass, 128);
For ints:
https://sampwiki.blast.hk/wiki/Valstr

For floats:
https://sampwiki.blast.hk/wiki/Floatstr
Reply


Messages In This Thread
strlen(inputtext) - by SukMathcuck - 17.06.2015, 18:41
Re: strlen(inputtext) - by J0sh... - 17.06.2015, 18:47
Re: strlen(inputtext) - by Azula - 17.06.2015, 18:50
Re: strlen(inputtext) - by AndySedeyn - 17.06.2015, 18:53
Re: strlen(inputtext) - by Misiur - 17.06.2015, 19:07
Re: strlen(inputtext) - by SukMathcuck - 17.06.2015, 20:16

Forum Jump:


Users browsing this thread: 2 Guest(s)