Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnCarKeyCountCheck(playerid)
- {
- new count;
- cache_get_row_count(count);
- printf("%d",count);
- if(count >= 7)
- {
- return 0;
- }
- else
- {
- return 1;
- }
- }
- stock CarKeysCheck(playerid)
- {
- new str[128];
- mysql_format(handle, str, sizeof(str), "SELECT * FROM `PlayerVehs` WHERE besitzer = '%s'",GetName(playerid));
- mysql_tquery(handle, str, "OnCarKeyCountCheck", "d", playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement