Expected token: "-string end-", but found "-identifier-" -
McCarthy - 23.10.2011
Erhm...trying to make dialogs for registering and login..but I have hit a wall..
I keep getting error 001: expected token: "-string end-", but found "-identifier-"
from these lines:
pawn Код:
format(string, sizeof(string), "/sAccounts/%s.ws", player);
if(fexist(string))
{
SendClientMessage(playerid, COLOR_LBLUE, "You are registered, login to retrieve your account");
ShowPlayerDialog(playerid,56, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WHITE"Type your password below to login.","Register","Quit");
}
else
{
SendClientMessage(playerid,COLOR_LBLUE,"Your account isn't registered, please register");
ShowPlayerDialog(playerid,55, DIALOG_STYLE_INPUT,""COLOR_WHITE"Register",""COLOR_WHITE"Type your password below to register a new account.","Register","Quit");
}
I honestly dont see whats wrong with that...give me a little hand please
Re: Expected token: "-string end-", but found "-identifier-" -
Medardo4Life - 23.10.2011
youre missing a ; somewhere
I believe this
I havent tested.
Re: Expected token: "-string end-", but found "-identifier-" -
McCarthy - 23.10.2011
Ehm..didn't help
Re: Expected token: "-string end-", but found "-identifier-" -
Stigg - 23.10.2011
Your ShowPlayerDialog lines are wrong.
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Re: Expected token: "-string end-", but found "-identifier-" -
SmiT - 23.10.2011
On wich line do you get this error? Can you show above the
if( fexist(string)) ?
Re: Expected token: "-string end-", but found "-identifier-" -
McCarthy - 23.10.2011
Quote:
Originally Posted by Stigg
|
Ah yes, thats what you get for being lazy..did it manually, works now
Thanks for the help anyways.
Re: Expected token: "-string end-", but found "-identifier-" -
AndreT - 23.10.2011
Quote:
Originally Posted by Medardo4Life
youre missing a ; somewhere
I believe this
I havent tested.
|
If-statements definitely don't need a semi-colon! Don't help if you've no idea what to do...
@ Topic author:
If you have something defined as
#define COLOR "{FFFFFF}"
Then you can do
ShowPlayerDialog(playerid, 55, DIALOG_STYLE_INPUT, COLOR_WHITE "Register", COLOR_WHITE "Type your password below to register a new account.", "Register", "Quit");
Re: Expected token: "-string end-", but found "-identifier-" -
McCarthy - 23.10.2011
ERhmm..another problem
pawn Код:
if(MD5_Hash(inputtext) != AccountInfo[playerid][Password]
{
ShowPlayerDialog(playerid,56,DIALOG_STYLE_INPUT,"Login","Wrong password, try again!","Login","Cancel");
}
error 033: array must be indexed (variable "MD5_Hash")
D:
Respuesta: Expected token: "-string end-", but found "-identifier-" -
kirk - 23.10.2011
pawn Код:
if(MD5_Hash(inputtext) != AccountInfo[playerid][Password]){
//...........
}
Re: Respuesta: Expected token: "-string end-", but found "-identifier-" -
geotheone - 30.05.2012
Ehm.. i have a problem with this lines... This is.
pawn Код:
D:\Royal Gaming\gamemodes\gtarp.pwn(11243) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Royal Gaming\gamemodes\gtarp.pwn(11243) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Royal Gaming\gamemodes\gtarp.pwn(11243) : warning 215: expression has no effect
D:\Royal Gaming\gamemodes\gtarp.pwn(11243) : error 001: expected token: ";", but found "-identifier-"
D:\Royal Gaming\gamemodes\gtarp.pwn(11243) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(string,sizeof(string), "" color_cyan "Message"wh": %s\n"color_cyan"This Business is for sale\n"color_cyan"Cost"wh": "color_green"%dLei \n"color_cyan"Level"wh": %d \n"color_cyan"to buy this Business \ntype "color_yellow"/buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
bizsale = Create3DTextLabel(string,COLOR_DBLUE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], 0.8+BizzInfo[h][bEntranceZ],10.0,0);
}
Help Please... :S