09.10.2018, 03:51
I always create a variable and work like solution 1, but when I read some documents, it said I should use solution 2. Question 1: Which solution I should use ?
Solution 1:
Solution 2:
Question 2: I use open bracket like this, is it seem be ok ?
Solution 1:
Код:
CMD:increaseCountNumber(playerid, params[]) {
new int: count = 1;
count += 1;
}
Код:
new int: count = 1;
CMD:increaseCountNumber(playerid, params[]) {
count += 1;
}
Код:
CMD:increaseCountNumber(playerid, params[]) {
}
forward goForward() {
}
pubic goForward() {
}
stock outOfStock() {
}
if isAMoto(vehicleid) {
println("this is a bike");
} else if isABike(vehicleid) {
println("this is a bike");
} else {
println("this is a plane");
}


