can't use 'playerid'
#1

Код:
forward PayDay();
public PayDay()
{
SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]");
}
error 017: undefined symbol "playerid"

Someone can explain why I can't use it?
Reply
#2

The function doesn't have a "playerid" parameter
Reply
#3

Quote:
Originally Posted by JaydenJason
Посмотреть сообщение
The function doesn't have a "playerid" parameter
So how can I make this? or a payday every 'x' time?
Reply
#4

Quote:
Originally Posted by rakinz
Посмотреть сообщение
Код:
forward PayDay();
public PayDay()
{
SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]");
}
error 017: undefined symbol "playerid"

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
Reply
#5

Quote:
Originally Posted by Swankeh
Посмотреть сообщение
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
Thanks a lot!! appreciate
+reppp
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)