2019-04-13, 06:31 AM
I've seen a tutorial on function overloading but that just seems kind of bad.?
I'm creating a function to manipulate entity data (players, houses, businesses, etc.). Since I plan to generate sql queries inside the function I wanted to have the ability of manipulating with player data if the player is online or offline.
My question is, is there any possibility of creating function overloading with the first parameter either being int (playerid) and string (playername). I guess it creates a problem with one being variable and other an array.?
I have been searching forums, github, pawn documentation but still nothing. I figured if anybody can help me it must be Y_Less.
I'm creating a function to manipulate entity data (players, houses, businesses, etc.). Since I plan to generate sql queries inside the function I wanted to have the ability of manipulating with player data if the player is online or offline.
My question is, is there any possibility of creating function overloading with the first parameter either being int (playerid) and string (playername). I guess it creates a problem with one being variable and other an array.?
I have been searching forums, github, pawn documentation but still nothing. I figured if anybody can help me it must be Y_Less.