Database ID
#1

Hello,

I worked on my house-filterscript, and I have a problem.
I must check of user 1 (from the database) online is.

But the playerid of user 1 can be 5 ingame.
How can I check of the player online is?

Greetz,
Incognation.
Reply
#2

Quote:
Originally Posted by Incognation
Посмотреть сообщение
Hello,

I worked on my house-filterscript, and I have a problem.
I must check of user 1 (from the database) online is.

But the playerid of user 1 can be 5 ingame.
How can I check of the player online is?

Greetz,
Incognation.
English please..
Reply
#3

I haven't understood a word you've said!
Maybe try to explain it in dutch? Post your problem on my page, and explain it in dutch..
Reply
#4

I would check of the player from the database (for example userid 1 with playerid 5) in the server is.
How can I do this?
Reply
#5

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
English please..
It is English, but not proper English..
Reply
#6

Quote:
Originally Posted by Incognation
Посмотреть сообщение
I would check of the player from the database (for example userid 1 with playerid 5) in the server is.
How can I do this?
Check the names

pawn Код:
// Fetch the username to an variable then :
// Let's pretend Username is the fethced variable.

new
     Username = FetchedNameFromMysqlDB,
     Found = -1;

for(new i; i < MAX_PLAYERS; i++)
{
     if(IsPlayerConnected(i)) { { if(strmatch(Username, GetPlayerNameEx(i)) Found = i; break; } }
     
}
if(Found != -1) prinf("Player is online! Id: %d", Found);
Reply
#7

omg? I'm also dutch, (Just if you haven't noticed, I said, post your problem in dutch on my page..)
Ja? doe jedat?
Reply
#8

It's already fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)