Getting 'Owner' And matching it to the players name?
#1

How would i do this?

Get what name it says next to Owner: in test.ini
And then see if that name matches the players name?


Heres an example: ( Non working )

pawn Код:
new owner, name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof name);
owner = dini_Get("/Test/test.ini", "Owner");

if(owner = name) return whatever;
Reply
#2

pawn Код:
new owner[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
format(owner, sizeof owner, dini_Get("/Test/test.ini", "Owner"));
if(!strcmp(name, owner, false, strlen(name))) return true; // owner!
else return false; // not an owner
Reply
#3

Can you give me a example? Of what you did,
Like the meaning of each thing because i need it to do something else also
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)