SA-MP Forums Archive
Saving player stats? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Saving player stats? (/showthread.php?tid=133074)



Saving player stats? - Torran - 10.03.2010

CHECK MY POST ON SECOND PAGE


Re: error 046: unknown array size (variable "inputtext") - pen_theGun - 10.03.2010

dini_Get returns a string.

Код:
format(inputtext, sizeof(inputtest)-1, "%s", dini_Get(file, "Password"));



Re: error 046: unknown array size (variable "inputtext") - Torran - 10.03.2010

Код:
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(188) : error 017: undefined symbol "inputtest"
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(188) : error 029: invalid expression, assumed zero
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(188) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: error 046: unknown array size (variable "inputtext") - Carlton - 10.03.2010

Due to his spelling error causing you to get the errors, I fixed it for you and him:

Код:
format(inputtext, sizeof(inputtext)-1, "%s", dini_Get(file, "Password"));



Re: error 046: unknown array size (variable "inputtext") - Torran - 10.03.2010

Код:
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(188) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.



Re: error 046: unknown array size (variable "inputtext") - Carlton - 10.03.2010

Quote:
Originally Posted by Joe Torran C
Код:
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(188) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Try removing the -1


Re: error 046: unknown array size (variable "inputtext") - Torran - 10.03.2010

Same warning


Re: error 046: unknown array size (variable "inputtext") - pen_theGun - 10.03.2010

Код:
format(inputtext, 32, "%s", dini_Get(file, "Password"));



Re: error 046: unknown array size (variable "inputtext") - Torran - 10.03.2010

Quote:
Originally Posted by pen_†ĥęGun
Код:
format(inputtext, 32, "%s", dini_Get(file, "Password"));
Thanks will test ingame now


Re: error 046: unknown array size (variable "inputtext") - Torran - 10.03.2010

Something wrong with that code,
Ingame i register and then login and it says Incorrect password,
It worked when it was a CMD though