#1

Errors:

Код:
(8059) : error 017: undefined symbol "text"
(8061) : error 035: argument type mismatch (argument 4)
(8061) : warning 215: expression has no effect
(8061) : error 001: expected token: ";", but found "]"
(8061) : error 029: invalid expression, assumed zero
(8061) : fatal error 107: too many error messages on one line
Lines:

Код:
CMD:hi(playerid, params[])
{
	new
	    queryString[255],
	    iRetStr = strfind(text, "(", true, 0),  //8059
	    textString[128];
	nearByMessage(playerid, COLOR_GREY, "%s says[%s Accent]:Hi there", szPlayerName, PlayerVariables[playerid][pAccent]); //8061
	nearByMessage(playerid, COLOR_GREY, "%s says[%s Accent]:I am gay", szPlayerName, PlayerVariables[playerid][pAccent]);
	nearByMessage(playerid, COLOR_GREY, "%s says[%s Accent]:Are you?", szPlayerName, PlayerVariables[playerid][pAccent]);
	mysql_real_escape_string(textString, textString);
	format(queryString, sizeof(queryString), "INSERT INTO chatlogs (value, playerinternalid) VALUES('%s', '%d')", textString, playerVariables[playerid][pInternalID]);
	mysql_query(queryString);
	format(textString, sizeof(textString), "\"%s\"", text);
	SetPlayerChatBubble(playerid, textString, COLOR_CHATBUBBLE, 10.0, 10000);

	playerVariables[playerid][pSpamCount]++;
	return 0;
}
How do I fix it?
Reply
#2

What r the line numbers tell us then we will be able to tell y the errors are happening
Reply
#3

Look after the actual coding, I commented the lines with errors.. you should be able to determine which the others are by look at those tralalalala -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)