(09-06-2020 - 08:37 PM)Kyle Wrote:true i could of lol(09-03-2020 - 08:15 PM)Venom_Modz Wrote:(10-24-2018 - 09:19 PM)Kyle Wrote: Eww it’s not in a switch statement, any real dev would have it run in switchesthere is that better?
Code:char* checkOffTheRadar(int player)
{
int hashed = getPlayerStats1(player, 170);
switch (hashed) {
case 0: return "No"; break;
case 1: return "Yes"; break;
}
Code:char* checkOffTheRadar(int player)
{
switch (getPlayerStats1(player, 170)) {
case 0: return "No"; break;
case 1: return "Yes"; break;
}
coul;d even do it like that, only a little less code but less code = more space :P
Users browsing: 5 Guest(s)