01.11.2011, 20:55
(
Последний раз редактировалось bartje01; 01.11.2011 в 23:56.
)
Hey all. I have a problem with my changename script.
This dialog should change my pScreenName variable
It does set the name but not in the variable
This is my stats string:
The Screen Name keeps being blanc. No errors or warnings.
What could be the problem now?
Update:
I know noticed that this line crashes my command:
PlayerInfo[playerid][pScreenName] = inputtext[20];
What could it be?
This dialog should change my pScreenName variable
pawn Код:
case DIALOG_CHANGENAME:
{
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, ""COL_WHITE"Email",""COL_RED"You have entered an invalid name.\n"COL_WHITE"Fill in your new name below. You're login name will be the same.\n This is just your screen-name.","Activate","Quit");
SetPlayerName(playerid,inputtext);
PlayerInfo[playerid][pScreenName] = inputtext[20];
ShowPlayerDialog(playerid, DIALOG_CHANGENAMESUC, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_WHITE"You have {00FF22}successfully{FFFFFF} changed your name.","Ok","");
}
return 1;
}
This is my stats string:
pawn Код:
format(String,sizeof(String),"\nMoney: %d\nControl Panel Used: %d\nScreen Name: %s",PlayerInfo[playerid][pCash],PlayerInfo[playerid][pCpUse],PlayerInfo[playerid][pScreenName]);
What could be the problem now?
Update:
I know noticed that this line crashes my command:
PlayerInfo[playerid][pScreenName] = inputtext[20];
What could it be?