16.02.2014, 22:52
Hey, I wrote script and when I compiled I haved that errors:
code:
I've searched anywhere, but I don't find the solve for this errors.
Sorry for bad English.
Код:
warning 202: number of arguments does not match definition error 033: array must be indexed (variable "aNick") warning 202: number of arguments does not match definition error 033: array must be indexed (variable "Date") warning 202: number of arguments does not match definition error 033: array must be indexed (variable "Reason") warning 202: number of arguments does not match definition error 033: array must be indexed (variable "IP")
Код:
if(Player[ playerid ][ pBanned ] == 1) { inline baninfo(pid) { #pragma unused pid new aNick[ 24 ], Date[ 40 ], Reason[ 100 ], Expire, IP[ 17 ]; aNick = cache_get_field_content(0, "aNick"); //527 Date = cache_get_field_content(0, "Date"); Reason = cache_get_field_content(0, "Reason"); Expire = cache_get_field_content_int(0,"Expire"); IP = cache_get_field_content(0, "IP");//531 new likoiki = (gettime() - Expire)/U_MINUTE; new table[ 24 + 40 + 100 + 17 + 200 ]; format(table,sizeof(table),"Jūs esate uћblokuotas %s|\n\ Įvykio data \t\t\t %s\n\ Prieћastis: %s\n\ Iki atblokavimo liko %d minučių", aNick, Date, Reason, likoiki ); new id = Dialog_Show(playerid, DIALOG_STYLE_MSGBOX, "Tu uћblokuotas", table, "Gerai",""); _Kick(playerid); } new query[ 100 ]; GetPlayerName(playerid, Player[ playerid ][ pNick ], MAX_PLAYER_NAME); mysql_format(SQL,query,sizeof(query),"SELECT * FROM baned WHERE Nick = '%s' ", Player[ playerid ][ pNick ]); mysql_tquery_inline(SQL, query, using inline baninfo, "i", playerid); return 1; }
Sorry for bad English.