Error 001
#1

pawn Код:
switch(Inpu[playerid])
                {
                    case 1:{
                    if(!fexist(UserPath(inputtext)))// error line
                    {SendClientMessage(playerid,-1,"{ff0000}There is no such user");ShowMes(playerid);}
                    else
/*......................................*/
error
pawn Код:
(8025) : error 001: expected token: "-string end-", but found "-identifier-"
(8025) : warning 215: expression has no effect
(8025) : error 001: expected token: ";", but found ")"
(8025) : error 029: invalid expression, assumed zero
(8025) : fatal error 107: too many error messages on one line
Reply
#2

There should be )) not )))
try this
pawn Код:
if(!fexist(UserPath(inputtext))
Reply
#3

No.
the first one is for the if.
The second one is for the fexist function
the third is for the userpath.

OT:
I assume inputtext is a string,
Can you show us what string "inputtext" is storing?
Reply
#4

yea it's an string the name
Reply
#5

Код:
but found "-identifier-"
if the identifier here is a colour code, use it properly.
Reply
#6

where color code ??
Reply
#7

Quote:

where color code ??

You didn't show me what exactly inputtext is storing. So I can't tell which kind of identifier there is.
pawn Код:
inputtext = "??"
Reply
#8

it's the name of player it's the offline msg sender system
pawn Код:
case 0:{ShowPlayerDialog(playerid,D_InputBox,DIALOG_STYLE_INPUT,"{842DCE}Reciver","{B93B8F}Enter the name of player which you want to send the message to.","OK","Back");Inpu[playerid]=1;}
                    case 1:{ShowPlayerDialog(playerid,D_InputBox,DIALOG_STYLE_INPUT,"{842DCE}Subject","{B93B8F}Enter the subject of the transfer message.","OK","Back");Inpu[playerid]=2;}
                    case 2:{ShowPlayerDialog(playerid,D_InputBox,DIALOG_STYLE_INPUT,"{842DCE}Amount","{B93B8F}Enter the amount you want to send.","OK","Back");Inpu[playerid]=3;}
                    case 3:{ShowPlayerDialog(playerid,D_InputBox,DIALOG_STYLE_INPUT,"{842DCE}Details[Line 1/2]","{B93B8F}Enter some description about the message.\n\nNOTE:Maximum characters 20.","OK","Back");Inpu[playerid]=4;}
                    case 4:{ShowPlayerDialog(playerid,D_InputBox,DIALOG_STYLE_INPUT,"{842DCE}Details[Line 2/2]","{B93B8F}Enter some description about the message.\n\nNOTE:Maximum characters 20.","OK","Back");Inpu[playerid]=5;}
                    case 5:{new str[250];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)