19.11.2017, 17:00
Код:
forward PayDay(); public PayDay() { SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]"); }
Someone can explain why I can't use it?
forward PayDay(); public PayDay() { SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]"); }
Код:
forward PayDay(); public PayDay() { SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]"); } Someone can explain why I can't use it? |
public PayDay(playerid)
{ SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]"); } When creating a function you have the possibility to put parameters in this case you would occupy a parameter that would be playerid, they can have more parameters and you call them as it is but for me it is more comfortable to call them as in the functions |