Difference between "const text[]" and "text[]"?
#7

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
So, there isn't a huge difference, because if we do something as that:
pawn Код:
stock SendMsg(playerid, const msg[])
{
    new info[128];
    format(info,128,"INFO: %s",msg);
    SendClientMessage(playerid,-1,info);
    return 1;
}
//I think it's the same as this:
stock SendMsg(playerid, msg[])
{
    new info[128];
    format(info,128,"INFO: %s",msg);
    SendClientMessage(playerid,-1,info);
    return 1;
}
except that you CAN'T change value of "msg" string
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)