27.07.2013, 11:48
(
Последний раз редактировалось Hargrave; 27.07.2013 в 13:04.
Причина: SOLVED.
)
Hey again.
I just tried to add a /b command to my script and this is what happened.
And all these errors are on the same line, and this is the line:
Placed underneath:
I am newbie scripter, so do not expect I know everything and that is why I am asking. As this is a scripting help section, there are no need to tell me to use ******, because I have already used ****** and it says nothing about this problem. Thanks. Maybe it is obviously for you scripts, but not for me as a newbie.
The whole command:
I just tried to add a /b command to my script and this is what happened.
Quote:
error 029: invalid expression, assumed zero error 017: undefined symbol "cmd_b" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line |
Quote:
CMD:b(playerid, params[]) |
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { |
The whole command:
Quote:
CMD:b(playerid, params[]) { new text[128], string[128]; new name[MAX_PLAYER_NAME]; if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1,"{008000}Usage: /n [message]"); else { GetPlayerName(playerid,name,sizeof(name)); strreplace(name, '_', ' '); format(string,sizeof(string),"(( %s says: %s ))",name,text); SendNearbyMessage(30.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE); } return 1; } |