Database ID - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Database ID (
/showthread.php?tid=252841)
Database ID -
Incognation - 03.05.2011
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.
Re: Database ID -
Cameltoe - 03.05.2011
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..
Re: Database ID -
[SFA]SpiRRiT - 03.05.2011
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..
Re: Database ID -
Incognation - 03.05.2011
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?
Re: Database ID -
[SFA]SpiRRiT - 03.05.2011
Quote:
Originally Posted by Cameltoe
English please..
|
It is English, but not proper English..
Re: Database ID -
Cameltoe - 03.05.2011
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);
Re: Database ID -
[SFA]SpiRRiT - 03.05.2011
omg? I'm also dutch, (Just if you haven't noticed, I said, post your problem in dutch on my page..)
Ja? doe jedat?
Re: Database ID -
Incognation - 03.05.2011
It's already fixed.