Mike (24 января 2012 - 22:06) писал:
ничего не могу понять...чуть чуть понял но все равно не знаю даж с чего начать и чего делать
for(new v; v < MAX_VEHICLES; v++) { GetPlayerVehicleID(v); new accoun[128]; format(accoun,sizeof(accoun),"tehoxmotr/%s.ini",v); new file = ini_createFile(accoun); if(file < 0) { new account[128]; format(account,sizeof(account),"tehoxmotr/%s.ini",v); mike = ini_openFile(account); } if(mike >= 0) { ini_setInteger(file,"Nomer",тут ставишь переменную, которая отвечает за номер); ini_closeFile(file); }
Mike (25 января 2012 - 16:34) писал:
for(new v; v < MAX_VEHICLES; v++) { GetPlayerVehicleID(v); new accoun[128]; format(accoun,sizeof(accoun),"tehoxmotr/%s.ini",v); new file = ini_createFile(accoun); if(file < 0) { new account[128]; format(account,sizeof(account),"tehoxmotr/%s.ini",v); mike = ini_openFile(account); } if(mike >= 0) { ini_setInteger(file,"Nomer",тут ставишь переменную, которая отвечает за номер); ini_closeFile(file); }
#include <mxINI>
Сообщение отредактировал Drepan: 26 января 2012 - 17:56
Цитата
Цитата
C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2312) : error 017: undefined symbol "ServerResetPlayerWeapons"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2313) : error 017: undefined symbol "ServerGivePlayerWeapon"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2340) : error 017: undefined symbol "ServerResetPlayerWeapons"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2438) : error 017: undefined symbol "ServerGivePlayerWeapon"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2485) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2501) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2505) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2509) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2513) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2517) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2521) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2525) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2529) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2541) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2545) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2549) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2553) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2557) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2569) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2573) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2577) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2589) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2605) : error 017: undefined symbol "PlayerToPoint"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(2893) : error 017: undefined symbol "GetGangZoneColor"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(3078) : error 017: undefined symbol "ServerResetPlayerWeapons"C:\Users\??????\Downloads\Diamond City\Diamond City\Diamond RP (GF 2 Edit By Jeff_Hardy)\gamemodes\diamond.pwn(3507) : error 017: undefined symbol "AdvanceSpectate"
if(strcmp("/tosmotr", cmdtext, true, 10) == 0) { for(new v; v < MAX_VEHICLES; v++) { GetPlayerVehicleID(v); new accoun[128]; format(accoun,sizeof(accoun),"tehoxmotr/%s.ini",v); new file = ini_createFile(accoun); if(file < 0) { new account[128]; format(account,sizeof(account),"tehoxmotr/%s.ini",v); file = ini_openFile(account); } if(file >= 0) { ini_setInteger(file,"Nomer",??? ??????? ??????????, ??????? ???????? ?? ?????); ini_closeFile(file); } if(IsPlayerInRangeOfPoint(playerid,3.0,1548.9176,-1681.5668,13.2237) && IsPlayerInAnyVehicle(playerid)) return ShowPlayerDialog(playerid,68,DIALOG_STYLE_INPUT,"????? ??????","??????? ?????? ???? ? ??????","??????","??????"); return 1; }
ini_setInteger(file,"Nomer",ТУТ);