strmid not working ?
#1

Fixed.
Reply
#2

Fixed.
Reply
#3

give the whole code, how is tmp defined?
Reply
#4

Fixed.
Reply
#5

well PAWN can only work with intergers, so when you do new tmp; you can only save 1 character. when you do new tmp[256]; you can save 256 characters (including the EOS aka '\0' aka end of string..?)

and you cannot do string = string in all cases.
the best metthod is to use format();
https://sampwiki.blast.hk/wiki/Format

I see the code and yes um you need to change a few things.

strmid accepts only strings (multi variables, var[*]) and after that a few intergers.
https://sampwiki.blast.hk/wiki/Strmid
Reply
#6

Fixed.
Reply
#7

well remove this line:
new tmp3 = FamilyInfo[family][FamilyLeader];

and change new tmp; to new tmp[(max character count)] ex new tmp[128];

That's all I can say.. I have not the whole code so I am limited with help :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)