Dialog Errors :P
#1

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");
Reply
#2

pawn Код:
if(!strlen(inputtext) || strlen(inputtext) == 300 || strlen(inputtext > 1))
This will work
Reply
#3

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")
Reply
#4

pawn Код:
if(!strlen(inputtext) || strlen(inputtext) == 300 || strlen(inputtext) > 1)
Sorry, this one should work
Reply
#5

Thanks mate!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)