Dialog Errors :P - 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: Dialog Errors :P (
/showthread.php?tid=269938)
Dialog Errors :P -
lawonama - 18.07.2011
I have some errors in my pawn script :P, Its a dialog where players need to enter their skin to spawn with that skin. But i'm getting errors
Errors:
Код:
C:\Users\Taylan\Desktop\new.pwn(745) : error 029: invalid expression, assumed zero
C:\Users\Taylan\Desktop\new.pwn(745) : error 046: unknown array size (variable "inputtext")
C:\Users\Taylan\Desktop\new.pwn(745) : error 029: invalid expression, assumed zero
C:\Users\Taylan\Desktop\new.pwn(745) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line 745 is:
pawn Код:
if (!strlen(inputtext)) || (strlen(inputtext = 300)) || (strlen(inputtext > 1)) return ShowPlayerDialog(playerid, Skint, DIALOG_STYLE_INPUT, "Skin", "You can't choose that skin!", "Accept", "Cancel");
Re: Dialog Errors :P -
Wesley221 - 18.07.2011
pawn Код:
if(!strlen(inputtext) || strlen(inputtext) == 300 || strlen(inputtext > 1))
This will work
Re: Dialog Errors :P -
lawonama - 18.07.2011
Thanks! But still getting one error, it says i need to index the variable, but i used earlier without indexing?:
pawn Код:
error 033: array must be indexed (variable "inputtext")
Re: Dialog Errors :P -
Wesley221 - 18.07.2011
pawn Код:
if(!strlen(inputtext) || strlen(inputtext) == 300 || strlen(inputtext) > 1)
Sorry, this one should work
Re: Dialog Errors :P -
lawonama - 18.07.2011
Thanks mate!