C:\Program Files\lvcnrr\gamemodes\SFCNR1.pwn(13257) : error 008: must be a constant expression; assumed zero C:\Program Files\lvcnrr\gamemodes\SFCNR1.pwn(13267) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
if(dialogid == DIALOG_ETPW)
{
new string[128];
if(response == 1)
{
new password[50] =strval(inputtext); // This is well, But go down to "passwordET = password" and see..
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_ETPW,DIALOG_STYLE_INPUT,"{FFFFFF}ET Gate Password","{FFFFFF}Please enter a new password.","Ok","Cancel");
return 1;
}
format(string,sizeof(string),""COL_ADMIN"[ADMIN] {FFFFFF}You have changed {AFAFAF}[ET]{FFFFFF} gate password to %s!",password);
SCM(playerid,COLOR_WHITE,string);
format(string,sizeof(string),"%s(%d) has changed [ET] gate password.",PlayerName(playerid),playerid);
SendALogMessage(string);
passwordET = password; // HERE IS THE PROBLEM, I want to set a string to string.
return 1;
}
}
if(dialogid == DIALOG_ETPW)
{
new string[128];
if(response == 1)
{
new password[50];
format(password, sizeof(password), "%s, inputtext); //change this aswell
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_ETPW,DIALOG_STYLE_INPUT,"{FFFFFF}ET Gate Password","{FFFFFF}Please enter a new password.","Ok","Cancel");
return 1;
}
format(string,sizeof(string),""COL_ADMIN"[ADMIN] {FFFFFF}You have changed {AFAFAF}[ET]{FFFFFF} gate password to %s!",password);
SCM(playerid,COLOR_WHITE,string);
format(string,sizeof(string),"%s(%d) has changed [ET] gate password.",PlayerName(playerid),playerid);
SendALogMessage(string);
//passwordET = password; // HERE IS THE PROBLEM, I want to set a string to string.
format(passwordET, sizeof(passwordET) , "%s", password); //use this to set one string as another.
return 1;
}
}
new password[50] =strval(inputtext);
pawn Code:
|
...The string you want to convert to an integer. |