SA-MP Forums Archive
Indexing help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Indexing help (/showthread.php?tid=649808)



Indexing help - Coox - 15.02.2018

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);



Re: Indexing help - Coox - 15.02.2018

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


Re: Indexing help - PepsiCola23 - 15.02.2018

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


Re: Indexing help - Coox - 15.02.2018

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


Re: Indexing help - Dayrion - 15.02.2018

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