18.12.2011, 14:58
Errors:
Lines:
How do I fix it?
Код:
(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
Код:
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; }