17.06.2015, 19:07
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:
Then use it like
For ints:
https://sampwiki.blast.hk/wiki/Valstr
For floats:
https://sampwiki.blast.hk/wiki/Floatstr
For strings:
In case you don't have it:
pawn Код:
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0),%1)
pawn Код:
strcpy(PlayerInfo[playerid][pKey], temppass, 128);
https://sampwiki.blast.hk/wiki/Valstr
For floats:
https://sampwiki.blast.hk/wiki/Floatstr