Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool GamertagCheck{
- int length;
- length = GET_LENGTH_OF_LITERAL_STRING(GET_PLAYER_NAME(GET_PLAYER_ID());
- if(!(COMPARE_STRING(GET_PLAYER_NAME(GET_PLAYER_ID()), GET_PLAYER_NAME(GET_STRING_FROM_HASH_KEY(uint hash))) && length == x(your constant Gamertag number)){
- print("This user is not registered");
- }
- }
- bool GTcheck(char *GT, uint hash, int safeLength){
- int length;
- length = GET_LENGTH_FROM_LITERAL_STRING(GT);
- stringHashKey = GET_STRING_FROM_HASH_KEY(hash);
- safeLength = GET_LENGTH_FROM_LITERAL_STRING(stringHashKey);
- if((COMPARE_STRING(GT, stringHashKey)) && (length == safeLength)) return true;
- return false;
- }
- bool GTchecklist(char *GT){
- if (GTcheck(GT, "(Your Gamertag here)", 584620554e4b4e4f574e)) return true;
- return false;
Advertisement
Add Comment
Please, Sign In to add comment