20:54
ОбновитьСмайлыУправление мини-чатом
МИНИ-ЧАТ
Главная страница!

 



 
          





Рекомендуем:





Последние Файлы GTA 4 Последние Файлы GTA-MP Реклама
Скрипт GTA 4 элементы Watch... 07.09.2014
Ferrari 360 Spider [EPM con... 13.12.2013
Porsche Cayenne Turbo 2012 ... 13.12.2013
Shelby Terlingua Mustang v1... 13.12.2013
Hamann Lamborghini Gallardo... 27.10.2013
[GM] The Big PEN1:LS v2.00 ... 04.12.2017
Dgun (AvnanceRP,SampRP,Dimo... 19.03.2016
SAMP скрипт SX Events (MySQ... 03.03.2016
Карта ASL мэрия для SAMP се... 03.03.2016
AIM для SA-MP 0.3.7 22.02.2016
Модератор форума: Dima-kun  
ID ошибок и варнингов
JASTДата: Четверг, 04.02.2010, 00:50 | Сообщение # 181
Новенький
Группа: Пользователи
Сообщений: 42
Награды: 3
Город: Саранск
Репутация: 3
Замечания: 60%
Статус:
Отличная тема cool канешн над было это мне раньш показывать ну лан,мож поможет кому! new_russian


Аккаунт бездействует.....
kupullkoДата: Суббота, 06.02.2010, 18:40 | Сообщение # 182
Новенький
Группа: Пользователи
Сообщений: 36
Награды: 1
Город: новокузнецк
Репутация: -4
Замечания: 0%
Статус:
: 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]
xSLiMxДата: Суббота, 06.02.2010, 21:02 | Сообщение # 183
Мастер джэдай
Группа: I'm V.I.P.
Сообщений: 2163
Награды: 34
Город: Ростов - на - Дону
Репутация: 1429
Замечания: 80%
Статус:
kupullko, а теперь перестаем писать одно и тоже, и даем строки с ошибками
W@RДата: Среда, 24.02.2010, 20:22 | Сообщение # 184
Постоялец
Группа: Пользователи
Сообщений: 335
Награды: 3
Город: а.k.a ЕкБ_ЮЗ
Репутация: 51
Замечания: 20%
Статус:
как исправить?
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(!strcmp(pname,"Mike",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Den",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Alex",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Jack",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot2",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);

if(!strcmp(pname,"JohnSF1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"JohnSF2",true)) SetSpawnInfo(playerid,1,163,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);*/

//printf("pppm = %d classid == %d Peds[classid][0]= %d",PlayerInfo[playerid][pModel],classid,Peds[classid][0]);
if(classid >= 267)
{
format(string, sizeof(string), "~b~SAPD~n~ ~r~Objective~w~: Retain Law");
GameTextForPlayer(playerid,string,3500,6);
oDisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
else if (classid >= 262 && classid <= 266)
{
format(string, sizeof(string), "~g~PARAMEDIC~n~~r~Objective~w~: Save Life");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 1 && classid <= 3)
{
format(string, sizeof(string), "~p~BALLAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 4 && classid <= 6)
{
format(string, sizeof(string), "~p~GROVE~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 7 && classid <= 9)
{
format(string, sizeof(string), "~p~VAGOS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 10 && classid <= 12)
{
format(string, sizeof(string), "~p~AZTECAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 13 && classid <= 15)
{
format(string, sizeof(string), "~p~NANG~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 16 && classid <= 21)
{
format(string, sizeof(string), "~p~MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 22 && classid <= 24)
{
format(string, sizeof(string), "~p~RUSSIAN MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 25 && classid <= 27)
{
format(string, sizeof(string), "~p~TRIADS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 28 && classid <= 30)
{
format(string, sizeof(string), "~p~BIKERS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~g~CIVILIAN~n~~r~Objective~w~: Live Life");
GameTextForPlayer(playerid,string,3500,6);
}

SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
if(gPlayerAccount[playerid] != 0)
{
new loginmsg[256+1];
format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Название окна",loginmsg,"Левая кнопка(логин)","Правка кнопка(отмена)");
}
else
{
new loginmsg[256+1];
format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Название окна",loginmsg,"Левая кнопка(регистрация)","Правка кнопка(отмена)");
}
return 1;
}





Translation from english to russian Ravens_Roleplay_v3 (RC5.2) - 0.3c--------15%


Сообщение отредактировал W@R - Среда, 24.02.2010, 20:28
EdwardsДата: Среда, 24.02.2010, 20:44 | Сообщение # 185
Советчик
Группа: Продвинутые
Сообщений: 1016
Награды: 20
Город: Сеть
Замечания: 100%
Статус:
error 021

Ищи где уже вносил.. Пишет что уже продефайнен..


Россия номер 1

W@RДата: Среда, 24.02.2010, 21:00 | Сообщение # 186
Постоялец
Группа: Пользователи
Сообщений: 335
Награды: 3
Город: а.k.a ЕкБ_ЮЗ
Репутация: 51
Замечания: 20%
Статус:
один такой еррор 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(!strcmp(pname,"Mike",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Den",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Alex",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Jack",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot2",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);

if(!strcmp(pname,"JohnSF1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"JohnSF2",true)) SetSpawnInfo(playerid,1,163,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);*/


//printf("pppm = %d classid == %d Peds[classid][0]= %d",PlayerInfo[playerid][pModel],classid,Peds[classid][0]);
if(classid >= 267)
{
format(string, sizeof(string), "~b~SAPD~n~ ~r~Objective~w~: Retain Law");
GameTextForPlayer(playerid,string,3500,6);
oDisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
else if (classid >= 262 && classid <= 266)
{
format(string, sizeof(string), "~g~PARAMEDIC~n~~r~Objective~w~: Save Life");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 1 && classid <= 3)
{
format(string, sizeof(string), "~p~BALLAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 4 && classid <= 6)
{
format(string, sizeof(string), "~p~GROVE~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 7 && classid <= 9)
{
format(string, sizeof(string), "~p~VAGOS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 10 && classid <= 12)
{
format(string, sizeof(string), "~p~AZTECAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 13 && classid <= 15)
{
format(string, sizeof(string), "~p~NANG~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 16 && classid <= 21)
{
format(string, sizeof(string), "~p~MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 22 && classid <= 24)
{
format(string, sizeof(string), "~p~RUSSIAN MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 25 && classid <= 27)
{
format(string, sizeof(string), "~p~TRIADS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 28 && classid <= 30)
{
format(string, sizeof(string), "~p~BIKERS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~g~CIVILIAN~n~~r~Objective~w~: Live Life");
GameTextForPlayer(playerid,string,3500,6);
}

SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
}
if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
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;
}





Translation from english to russian Ravens_Roleplay_v3 (RC5.2) - 0.3c--------15%
Dima-kunДата: Среда, 24.02.2010, 22:53 | Сообщение # 187
Группа: Разработчики
Сообщений: 6269
Награды: 72
Репутация: 3512
Замечания: 0%
Статус:
как пить дать в скобках запутался
{
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;
}



Мои работы:
[INC] Сборник d_includes [LAST],[FS] New Demage Effect,[FS]Авто-Поворотники,
[FS]mp3player,[FS] Fun Chat Game,[FS] Car Buy Syst,[FS] Anti-AirBrk,[INC] d_setpos,
[GM] Game Move v0.1,[FS+include]Super-Armour [0.3z],[FS + Include] Multi Checkpoints
W@RДата: Четверг, 25.02.2010, 05:16 | Сообщение # 188
Постоялец
Группа: Пользователи
Сообщений: 335
Награды: 3
Город: а.k.a ЕкБ_ЮЗ
Репутация: 51
Замечания: 20%
Статус:
не помогает ( :( :(




Translation from english to russian Ravens_Roleplay_v3 (RC5.2) - 0.3c--------15%
Dima-kunДата: Четверг, 25.02.2010, 13:40 | Сообщение # 189
Группа: Разработчики
Сообщений: 6269
Награды: 72
Репутация: 3512
Замечания: 0%
Статус:
Quote (DizeL-ZR)
format(loginmsg,256,"Сообщение, которое будет отображено внутри диалогового окна");

а ну попробуй так
замени на new loginmsg[200];
format(loginmsg,sizeof(loginmsg),"Сообщение, которое будет отображено внутри диалогового окна");

и аналогично с другой.


Мои работы:
[INC] Сборник d_includes [LAST],[FS] New Demage Effect,[FS]Авто-Поворотники,
[FS]mp3player,[FS] Fun Chat Game,[FS] Car Buy Syst,[FS] Anti-AirBrk,[INC] d_setpos,
[GM] Game Move v0.1,[FS+include]Super-Armour [0.3z],[FS + Include] Multi Checkpoints
xJesterДата: Четверг, 25.02.2010, 19:17 | Сообщение # 190
Постоялец
Группа: Пользователи
Сообщений: 442
Награды: 18
Город: /dev/null
Репутация: 223
Замечания: 100%
Статус:
DizeL-ZR, понабирали в самортов... fun
sizeof(...) - вернёт число, т.е 200, а в чём разница между 200 и 200? fun



You know you're right!

Если взять цветной бумаги, ручку, ножницы и клей, и еще чуть-чуть отваги - можно сделать сто рублей.

W@RДата: Четверг, 25.02.2010, 19:42 | Сообщение # 191
Постоялец
Группа: Пользователи
Сообщений: 335
Награды: 3
Город: а.k.a ЕкБ_ЮЗ
Репутация: 51
Замечания: 20%
Статус:
впишите пожалуйста правильно вот в этот паблик , буду оч благодарен)) suicide2
[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(!strcmp(pname,"Mike",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Den",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Alex",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Jack",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot2",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);

if(!strcmp(pname,"JohnSF1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"JohnSF2",true)) SetSpawnInfo(playerid,1,163,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);*/


//printf("pppm = %d classid == %d Peds[classid][0]= %d",PlayerInfo[playerid][pModel],classid,Peds[classid][0]);
if(classid >= 267)
{
format(string, sizeof(string), "~b~SAPD~n~ ~r~Objective~w~: Retain Law");
GameTextForPlayer(playerid,string,3500,6);
oDisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
else if (classid >= 262 && classid <= 266)
{
format(string, sizeof(string), "~g~PARAMEDIC~n~~r~Objective~w~: Save Life");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 1 && classid <= 3)
{
format(string, sizeof(string), "~p~BALLAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 4 && classid <= 6)
{
format(string, sizeof(string), "~p~GROVE~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 7 && classid <= 9)
{
format(string, sizeof(string), "~p~VAGOS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 10 && classid <= 12)
{
format(string, sizeof(string), "~p~AZTECAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 13 && classid <= 15)
{
format(string, sizeof(string), "~p~NANG~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 16 && classid <= 21)
{
format(string, sizeof(string), "~p~MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 22 && classid <= 24)
{
format(string, sizeof(string), "~p~RUSSIAN MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 25 && classid <= 27)
{
format(string, sizeof(string), "~p~TRIADS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 28 && classid <= 30)
{
format(string, sizeof(string), "~p~BIKERS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~g~CIVILIAN~n~~r~Objective~w~: Live Life");
GameTextForPlayer(playerid,string,3500,6);
}

SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}
вот эти строки
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,"Принять","Отмена");
}
return 1;
}




Translation from english to russian Ravens_Roleplay_v3 (RC5.2) - 0.3c--------15%
SanSayДата: Четверг, 25.02.2010, 23:01 | Сообщение # 192
Долгожитель
Группа: Продвинутые
Сообщений: 1662
Награды: 25
Город: Наб.Челны
Репутация: 280
Замечания: 0%
Статус:
ну как то так... только думаю все равно ошибки будут... без головы не обойдешься
[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);

if(!strcmp(pname,"Mike",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Den",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Alex",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Jack",true)) SetSpawnInfo(playerid,1,166,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"Pilot2",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);

if(!strcmp(pname,"JohnSF1",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);
if(!strcmp(pname,"JohnSF2",true)) SetSpawnInfo(playerid,1,163,0.0,0.0,0.0,0.0,0,0,0,0,0,0);

}

PlayerConFull[playerid] = 1;
PlayerInfo[playerid][pModel] = Peds[classid][0];

if(classid >= 267)
{
format(string, sizeof(string), "~b~SAPD~n~ ~r~Objective~w~: Retain Law");
GameTextForPlayer(playerid,string,3500,6);
oDisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
else if (classid >= 262 && classid <= 266)
{
format(string, sizeof(string), "~g~PARAMEDIC~n~~r~Objective~w~: Save Life");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 1 && classid <= 3)
{
format(string, sizeof(string), "~p~BALLAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 4 && classid <= 6)
{
format(string, sizeof(string), "~p~GROVE~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 7 && classid <= 9)
{
format(string, sizeof(string), "~p~VAGOS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 10 && classid <= 12)
{
format(string, sizeof(string), "~p~AZTECAS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 13 && classid <= 15)
{
format(string, sizeof(string), "~p~NANG~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 16 && classid <= 21)
{
format(string, sizeof(string), "~p~MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 22 && classid <= 24)
{
format(string, sizeof(string), "~p~RUSSIAN MAFIA~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 25 && classid <= 27)
{
format(string, sizeof(string), "~p~TRIADS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid >= 28 && classid <= 30)
{
format(string, sizeof(string), "~p~BIKERS~n~~r~Objective~w~: Chaos");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~g~CIVILIAN~n~~r~Objective~w~: Live Life");
GameTextForPlayer(playerid,string,3500,6);
}

SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}


simhost.org:8888 Mode:PEN1(LS)+GTO(банды+кач) v4.23_SAMP_0.3с
PEN1(LS)+GTO(банды+кач)v3.92_SAMP_0.3с(ifolder)*** AntiBot*** [FS] Car Export vs SanSay*** [FS] anti_s0beit_FakeKill_Ver2
Dima-kunДата: Четверг, 25.02.2010, 23:10 | Сообщение # 193
Группа: Разработчики
Сообщений: 6269
Награды: 72
Репутация: 3512
Замечания: 0%
Статус:
xJester, есть разница для компилятора!!!!!! в каждой версии немного отличается стандарт..


Мои работы:
[INC] Сборник d_includes [LAST],[FS] New Demage Effect,[FS]Авто-Поворотники,
[FS]mp3player,[FS] Fun Chat Game,[FS] Car Buy Syst,[FS] Anti-AirBrk,[INC] d_setpos,
[GM] Game Move v0.1,[FS+include]Super-Armour [0.3z],[FS + Include] Multi Checkpoints


Сообщение отредактировал DizeL-ZR - Четверг, 25.02.2010, 23:11
VILDДата: Пятница, 26.02.2010, 01:29 | Сообщение # 194
Новенький
Группа: Пользователи
Сообщений: 26
Награды: 0
Город: Mosko
Репутация: 1
Замечания: 0%
Статус:
Дауж пару error-ов исправил!
xJesterДата: Пятница, 26.02.2010, 13:07 | Сообщение # 195
Постоялец
Группа: Пользователи
Сообщений: 442
Награды: 18
Город: /dev/null
Репутация: 223
Замечания: 100%
Статус:
DizeL-ZR,
new arr[200];
printf("%d, %d", 200, sizeof(arr));

В каком месте разница? Компилятору ваще пофигу, 200 - константа и в том и в другом случае... :D


You know you're right!

Если взять цветной бумаги, ручку, ножницы и клей, и еще чуть-чуть отваги - можно сделать сто рублей.

Поиск:





 


 


 
Хостинг от uCoz samp.at.ua