Gpci
From SA-MP Wiki
[edit]
gpci
![]() | Note: This function name starts with a lowercase letter. |
Description:
Fetch the CI of a user, this is linked to their SAMP/GTA on their computer.
(playerid, string[], length)
playerid | The ID of the player to fetch their CI. |
string[] | String to store the fetched CI in. |
length | Assigned size of the string, should use sizeof() |
Return Values:
The length of the stored string. 0 if player specified doesn't exist.
Example Usage:
#if !defined gpci native gpci(playerid, serial[], len); #endif new szSerial[41]; // 40 + \0 gpci(iPlayerID, szSerial, sizeof(szSerial)); return szSerial;
Example Usage:
ReturnCI(iPlayerID) { new szSerial[41]; // 40 + \0 gpci(iPlayerID, szSerial, sizeof(szSerial)); return szSerial; }
[edit]
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- GetNetworkStats: Gets the servers networkstats and saves it into a string.
- GetPlayerNetworkStats: Gets a player networkstats and saves it into a string.