: warning 213: tag mismatch : error 029: invalid expression, assumed zero : error 035: argument type mismatch (argument 6) : warning 202: number of arguments does not match definition : error 029: invalid expression, assumed zero : warning 202: number of arguments does not match definition
При компиляции выводит вот эти ошибки , Помогите их убрать. с меня +
--------------------------------------------- : предупреждение 213: несоответствие признака : ошибка 029: недействительное выражение, принятый ноль : ошибка 035: несоответствие типа аргумента (аргумент 6) : предупреждение 202: число аргументов не соответствует определению : ошибка 029: недействительное выражение, принятый ноль : предупреждение 202: число аргументов не соответствует определению
ВОТ ЭТО ЖЕ НА РУССКОМ ! Незнаю чё такое ((
Если тебе трудно грызть гранит науки - попробуй пососать........... [url=http://gigabars.ru/][img]http://img12.imageshack.us/img12/4271/bigbar2y.gif[/img][/url]
как исправить? error 010: invalid function or declaration error 010: invalid function or declaration error 021: symbol already defined: "format" error 010: invalid function or declaration error 021: symbol already defined: "loginmsg" error 010: invalid function or declaration
вот в этих строках где то ошибки : [pwn]public OnPlayerRequestClass(playerid, classid) { new string[128]; if(IsPlayerNPC(playerid)) { new pname[40]; GetPlayerName(playerid,pname,sizeof(pname)); if(!strcmp(pname,"taxi1",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"taxi2",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"Train",true)) SetSpawnInfo(playerid,1,253,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
/* if (gPlayerAccount[playerid] == 0) { GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3); SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2); SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0); return 1; } */ PlayerConFull[playerid] = 1; PlayerInfo[playerid][pModel] = Peds[classid][0]; /* new skin = GetPlayerSkin(playerid); format(string, sizeof(string), "~b~Skin: %d",skin); GameTextForPlayer(playerid,string,3500,6);*/
один такой еррор 021 в строке format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна"); 9263) : error 021: symbol already defined: "format"
Добавлено (24.02.2010, 21:00) --------------------------------------------- помогите исправить в выделенных строках : error 010: invalid function or declaration error 010: invalid function or declaration error 021: symbol already defined: "format" error 010: invalid function or declaration error 010: invalid function or declaration
[pwn] public OnPlayerRequestClass(playerid, classid) { new string[128]; if(IsPlayerNPC(playerid)) { new pname[40]; GetPlayerName(playerid,pname,sizeof(pname)); if(!strcmp(pname,"taxi1",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"taxi2",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"Train",true)) SetSpawnInfo(playerid,1,253,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
/* if (gPlayerAccount[playerid] == 0) { GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3); SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2); SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0); return 1; } */ PlayerConFull[playerid] = 1; PlayerInfo[playerid][pModel] = Peds[classid][0]; /* new skin = GetPlayerSkin(playerid); format(string, sizeof(string), "~b~Skin: %d",skin); GameTextForPlayer(playerid,string,3500,6);*/
как пить дать в скобках запутался { if(gPlayerAccount[playerid] != 0) { new loginmsg[256+1]; format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна"); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Название окна",loginmsg,"Левая кнопка(логин)","Правка кнопка(отмена)"); } else { format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна"); ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Название окна",loginmsg,"Левая кнопка(регистрация)","Правка кнопка(отмена)"); } } return 1; }
впишите пожалуйста правильно вот в этот паблик , буду оч благодарен)) [pwn] public OnPlayerRequestClass(playerid, classid) { new string[128]; if(IsPlayerNPC(playerid)) { new pname[40]; GetPlayerName(playerid,pname,sizeof(pname)); if(!strcmp(pname,"taxi1",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"taxi2",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"Train",true)) SetSpawnInfo(playerid,1,253,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
/* if (gPlayerAccount[playerid] == 0) { GameTextForPlayer(playerid, "~w~Welcome.~n~In order to play you need to create an account, type ~n~~r~/regnick (password)~w~ to register", 20000, 3); SetPlayerCameraPos(playerid,1460.0, -1324.0, 287.2); SetPlayerCameraLookAt(playerid,1374.5, -1291.1, 239.0); return 1; } */ PlayerConFull[playerid] = 1; PlayerInfo[playerid][pModel] = Peds[classid][0]; /* new skin = GetPlayerSkin(playerid); format(string, sizeof(string), "~b~Skin: %d",skin); GameTextForPlayer(playerid,string,3500,6);*/
ну как то так... только думаю все равно ошибки будут... без головы не обойдешься [pwn] public OnPlayerRequestClass(playerid, classid) { new string[128]; if(IsPlayerNPC(playerid)) {
new pname[40]; GetPlayerName(playerid,pname,sizeof(pname)); if(gPlayerLogged[playerid] == 0) { format(string, sizeof(string), "accounts/%s.cer", pname); if(fexist(string)) { gPlayerAccount[playerid] = 1; new loginmsg[256+1]; format(loginmsg,256,"Пожалуйста введите свой пароль в окошко"); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Авторизация",loginmsg,"Принять","Отмена"); } else { gPlayerAccount[playerid] = 0; new loginmsg[256+1]; format(loginmsg,256,"Пожалуйста введите свой пароль в окошко"); ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Регистрация",loginmsg,"Принять","Отмена"); } } if(!strcmp(pname,"taxi1",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"taxi2",true)) SetSpawnInfo(playerid,1,29,0.0,0.0,0.0,0.0,0,0,0,0,0,0); if(!strcmp(pname,"Train",true)) SetSpawnInfo(playerid,1,253,0.0,0.0,0.0,0.0,0,0,0,0,0,0);