Differences with {}
#1

Hey
Someone can tell me what are the differences between:
pawn Код:
new name[24];
new name[24] = {0,...};

GetPlayerName...
Reply
#2

All cells of the name [24] = {0, ...} does not have the number 0.
name [24], will have a null value
Reply
#3

English please

Edit
Okay how can is this help me?
Reply
#4

Suppose you want to turn all the cells name [24]; 0.
You could do the following:
name [0] = 0;
name [1] = 0;
name [2] = 0;
name [3] = 0;
continue ...
name [23] = 0;
This way would take longer and would be very large.
One way would be to make more optimized as follows:
name [24] = {0, ...}; What does the same as the previous example
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)