Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Ошибка в сис-ме регистрации (new.pwn)

Статус
В этой теме нельзя размещать новые ответы.

C0mBat1ve

Ученик
Собственно я знаю отчего ошибка, сильно длинная строчка mysql_format в которой у меня прописаны контакты в телефоне, но я не знаю как решить...
Что рычит павно:
Код:
>****** -;+ -(+ -i../include -c new.pwn
new.pwn(5041) : error 075: input line too long (after substitutions)
new.pwn(5042) : error 037: invalid string (possibly non-terminated string)
new.pwn(5042) : error 017: undefined symbol "INSERT"
new.pwn(5042) : error 017: undefined symbol "INTO"
new.pwn(5042) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

5 Errors.
Строки:
Код:
stock OnPlayerRegister(playerid, pass[])
{
	new query[256];
	new string[256];
	PlayerInfo[playerid][pHouseKey] = -1;
	PlayerInfo[playerid][pHotelKey] = -1;
	PlayerInfo[playerid][pProp] = -1;
	AllContactsDefault(playerid);
	new c1 = ContactInfo[playerid][cContact1];
	new c2 = ContactInfo[playerid][cContact2];
	new c3 = ContactInfo[playerid][cContact3];
	new c4 = ContactInfo[playerid][cContact4];
	new c5 = ContactInfo[playerid][cContact5];
	new c6 = ContactInfo[playerid][cContact6];
	new c7 = ContactInfo[playerid][cContact7];
	new c8 = ContactInfo[playerid][cContact8];
	new c9 = ContactInfo[playerid][cContact9];
	new c10 = ContactInfo[playerid][cContact10];
	new c11 = ContactInfo[playerid][cContact11];
	new c12 = ContactInfo[playerid][cContact12];
	new c13 = ContactInfo[playerid][cContact13];
	new c14 = ContactInfo[playerid][cContact14];
	new c15 = ContactInfo[playerid][cContact15];
	new c16 = ContactInfo[playerid][cContact16];
	new c17 = ContactInfo[playerid][cContact17];
	new c18 = ContactInfo[playerid][cContact18];
	new c19 = ContactInfo[playerid][cContact19];
	new c20 = ContactInfo[playerid][cContact20];
	new c21 = ContactInfo[playerid][cContact21];
	new c22 = ContactInfo[playerid][cContact22];
	new c23 = ContactInfo[playerid][cContact23];
	new c24 = ContactInfo[playerid][cContact24];
	new c25 = ContactInfo[playerid][cContact25];
	new c26 = ContactInfo[playerid][cContact26];
	new c27 = ContactInfo[playerid][cContact27];
	new c28 = ContactInfo[playerid][cContact28];
	new c29 = ContactInfo[playerid][cContact29];
	new c30 = ContactInfo[playerid][cContact30];
	new c1n = ContactInfo[playerid][cContact1n];
	new c2n = ContactInfo[playerid][cContact2n];
	new c3n = ContactInfo[playerid][cContact3n];
	new c4n = ContactInfo[playerid][cContact4n];
	new c5n = ContactInfo[playerid][cContact5n];
	new c6n = ContactInfo[playerid][cContact6n];
	new c7n = ContactInfo[playerid][cContact7n];
	new c8n = ContactInfo[playerid][cContact8n];
	new c9n = ContactInfo[playerid][cContact9n];
	new c10n = ContactInfo[playerid][cContact10n];
	new c11n = ContactInfo[playerid][cContact11n];
	new c12n = ContactInfo[playerid][cContact12n];
	new c13n = ContactInfo[playerid][cContact13n];
	new c14n = ContactInfo[playerid][cContact14n];
	new c15n = ContactInfo[playerid][cContact15n];
	new c16n = ContactInfo[playerid][cContact16n];
	new c17n = ContactInfo[playerid][cContact17n];
	new c18n = ContactInfo[playerid][cContact18n];
	new c19n = ContactInfo[playerid][cContact19n];
	new c20n = ContactInfo[playerid][cContact20n];
	new c21n = ContactInfo[playerid][cContact21n];
	new c22n = ContactInfo[playerid][cContact22n];
	new c23n = ContactInfo[playerid][cContact23n];
	new c24n = ContactInfo[playerid][cContact24n];
	new c25n = ContactInfo[playerid][cContact25n];
	new c26n = ContactInfo[playerid][cContact26n];
	new c27n = ContactInfo[playerid][cContact27n];
	new c28n = ContactInfo[playerid][cContact28n];
	new c29n = ContactInfo[playerid][cContact29n];
	new c30n = ContactInfo[playerid][cContact30n];
	mysql_format(handle,string,"INSERT INTO contacts(name,contact1n,contact1,contact2n,contact2,contact3n,contact3,contact4n,contact4,contact5n,contact5,contact6n,contact6,contact7n,contact7,contact8n,contact8,contact9n,contact9,contact10n,contact10\
	contact11n,contact11,contact12n,contact12,contact13n,contact13,contact14n,contact14,contact15n,contact15,contact16n,contact16,contact17n,contact17,contact18n,contact18,contact19n,contact19,contact20n,contact20\
	contact21n,contact21,contact22n,contact22,contact23n,contact23,contact24n,contact24,contact25n,contact25,contact26n,contact26,contact27n,contact27,contact28n,contact28,contact29n,contact29,contact30n,contact30)\
	VALUES (%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d,%s,%d)",gPlayerName[playerid],c1n,c1,c2n,c2,c3n,c3,c4n,c4,c5n,c5,c6n,c6,c7n,c7,c8n,c8,c9n,c9,c10n,c10,c11n,c11,c12n,c12,c13n,c13,
	c14n,c14,c15n,c15,c16n,c16,c17n,c17,c18n,c18,c19n,c19,c20n,c20,c21n,c21,c22n,c22,c23n,c23,c24n,c24,c25n,c25,c26n,c26,c27n,c27,c28n,c28,c29n,c29,c30n,c30);
	mysql_function_query(handle,string, false, "", "");
    mysql_format(handle,query,"INSERT INTO accounts(nickname,password,gender,nation,rasa,char,housekey,prop) VALUES (%s,%s,%d,%d,%d,%d,-1,-1)", gPlayerName[playerid], pass, PlayerInfo[playerid][pSex], PlayerInfo[playerid][pNation], PlayerInfo[playerid][pRasa], PlayerInfo[playerid][pSkins][0]);
    mysql_function_query(handle, query, false, "", "");
    SetPVarInt(playerid, "LOGGED", 1);
	return true;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу