Indexing help
#1

Hello, first of all I want to go ahead and say hello to everyone and hope that we will have fun, I am relatively new to the forum and developing, I recently started doing some E-mail writing code but I can't manage to store it in to a PlayerInfo enum with text rather than with numbers ( I don't want 'strval(blabla)') I am looking for some help, because it's really getting over my head, been trying to find the resolution for a few days.
Код:
new string2[70];
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Email", inputtext);
INI_Close(File);
PlayerInfo[playerid][pEmail] = inputtext;
format(string2,sizeof(string2),""COL_SRV"* "COL_WHT"U redu vasa E-Mail adresa je: %s",inputtext);
SCM(playerid,-1,string2);
Reply
#2

Sorry, translation to "U redu vasa E-mail adresa je: %s" is "Okay, your E-mail adress is: %s."
Reply
#3

so you want to block numbers ? ( emails like 123abc@x.y ) ?
Reply
#4

no you got me wrong, I want script to save PlayerInfo[playerid][pEmail] = inputtext; just as it is without using strval
Reply
#5

You should use strcat to add a a string to an empty value.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)