How to get letters/numbers of the name/ip
#1

Hello
how to get first 4-6 letters/numbers of the name/ip from .txt file. Ive tryed something like this, but it gets me 4 last letters of the name:
Код:
if(strfind(dini_Get("Names.txt", PlayerName[4])
please opinions
Reply
#2

try this
pawn Код:
new letters[4], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
strmid(letters, dini_Get("Names.txt", PlayerName), 0, strlen(dini_Get("Names.txt", PlayerName)), 255);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)