stock LoadCar(){new str2[18][128];new str[1024];new File:file = fopen(CARPATH, io_read);if (file){new carid=KocsiNum;while (carid < MAX_VEHICLES){ fread(file, str); split(str, str2, \',\'); CarInfo[carid][cModel] = strval(str2[0]);//modelid,Élet,panels,doors,tires,pos1,pos2,pos3,angle,c1,c2,Tulaj,Leírás,Érték,Bérelhetõe,Rendszám,Kocsinév CarInfo[carid][cLife] = strval(str2[1]); CarInfo[carid][cPanels] = strval(str2[2]); CarInfo[carid][cDoors] = strval(str2[3]); CarInfo[carid][cTires] = strval(str2[4]); CarInfo[carid][cPos0] = floatstr(str2[5]); CarInfo[carid][cPos1] = floatstr(str2[6]); CarInfo[carid][cPos2] = floatstr(str2[7]); CarInfo[carid][cAngle] = floatstr(str2[8]); CarInfo[carid][cColor1] = strval(str2[9]); CarInfo[carid][cColor2] = strval(str2[10]); strmid(CarInfo[carid][pName], str2[11], 0, strlen(str2[11]),MAX_PLAYER_NAME); strmid(CarInfo[carid][cDesc], str2[12], 0, strlen(str2[12]),32); CarInfo[carid][cValue] = strval(str2[13]); CarInfo[carid][cOwned] = strval(str2[14]); CarInfo[carid][cLock] = strval(str2[15]); strmid(CarInfo[carid][cNum], str2[16], 0, strlen(str2[16]),8); strmid(CarInfo[carid][cName], str2[17],0, strlen(str2[17]),16); carid ++;}}print(\"Kocsik betöltve\");}stock SaveCar(){new carid=KocsiNum;new File:file2=fopen(CARPATH, io_write);new File:file=fopen(CARPATH, io_append);fwrite(file2,\"\");fclose(file2);new coordsstring[512];while (carid < MAX_VEHICLES){//model,Élet,panels,doors,tires,pos1,pos2,pos3,angle,c1,c2,Bérlõ,Leírás,Érték,Bérelhetõe,Rendszám,Kocsinév format(coordsstring, sizeof(coordsstring), \"%d,%f,%d,%d,%d,%f,%f,%f,%f,%d,%d,%s,%s,%d,%d,%s,%s\\n\",CarInfo[carid][cModel],CarInfo[carid][cLife],CarInfo[carid][cPanels],CarInfo[carid][cDoors],CarInfo[carid][cTires],CarInfo[carid][cPos0],CarInfo[carid][cPos1],CarInfo[carid][cPos2],CarInfo[carid][cAngle],CarInfo[carid][cColor1],CarInfo[carid][cColor2],CarInfo[carid][pName],CarInfo[carid][cDesc],CarInfo[carid][cValue],CarInfo[carid][cOwned],CarInfo[carid][cNum],CarInfo[carid][cName]);fwrite(file, coordsstring);fclose(file);carid++;}print(\"Kocsik elmentve\");}
#define SendClientMessageToAdmin(%1) if(foreach(Player,a) if(PlayerInfo[a][pAdmin]>0) SendClientMessage(a,-1,%1) return 1;
public OnPlayerEnterVehicle( playerid, vehicleid, ispassenger ){ if( vehicleid == 410 ) { SendClientMessage( playerid, 0xFF0000AA, \"Beültél a egy autóba! ID: 410\" ); } return 1;}
dini_IntSet(fajl,\"elet\",GetPlayerHealth(id));
new Float: g_fHealth;dini_FloatSet( fajl, \"elet\", GetPlayerHealth( id, g_fHealth ) );
new Float:pHealth;GetPlayerHealth(playerid,pHealth);dini_FloatSet(fajl,\"elet\",pHealth);
SetPlayerChatBubble(playerid,text,0xFF0000FF,35.0,10000); new Float:x, Float:y, Float:z, string[200], name[MAX_PLAYERS]; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)==1) { GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(i, 7, x, y, z)) { GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"%s mondja: %s\", name, text);
CreateDynamicObject(9339, 1395.97, 1340.20, 9.81, 0.00, 0.00, 90.00 , Float:distance = 400.0);
error 017: undefined symbol \"distance\"warning 215: expression has no effecterror 001: expected token: \";\", but found \")\"error 029: invalid expression, assumed zerofatal error 107: too many error messages on one line