Way to shorten this?
#1

Solved
Reply
#2

You do realize you can have more than 1 line of code per if statement, right?

pawn Код:
switch(GetPlayerScore(killerid)) {
    case 1: {
        TextDrawSetString(EXPNUMB[killerid],"~b~l");
    }
    case 2: {
        TextDrawSetString(EXPNUMB[killerid],"~b~ll");
        TextDrawSetString(EXPNUMB[killerid],"~b~lll");
    }
    case 3: {
        TextDrawSetString(EXPNUMB[killerid],"~b~llll");
    }
    case 4: {
        TextDrawSetString(EXPNUMB[killerid],"~b~llll");
    }
    case 5: {
        TextDrawSetString(EXPNUMB[killerid],"~b~lllll");
    }
}
Reply
#3

Solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)