Gpci
From SA-MP Wiki
gpci
| Note: This function name starts with a lowercase letter. | 
Description:
Fetch the GPCI of a user, this is linked to their SAMP/GTA on their computer.
Important  | A player's GPCI is NOT UNIQUE, some players may have similar or the same GPCI, don't ban solely due to a GPCI match. | 
(playerid, string[], length)
| playerid | The ID of the player to fetch their GPCI. | 
| string[] | String to store the fetched GPCI in. | 
| length | Assigned size of the string, should use sizeof() | 
Return Values:
This function will return the string value of a user's GPCI
Important  | You must add 'native gpci(playerid, serial[], len);' at the top of your script before using any GPCI functions | 
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: 
ReturnGPCI(iPlayerID) { new szSerial[41]; // 40 + \0 gpci(iPlayerID, szSerial, sizeof(szSerial)); return szSerial; }
Related Functions
The following functions may be useful, as they are related 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.
 
