Stellet 7 Odesláno: 28. Březen, 2015 Share Odesláno: 28. Březen, 2015 Ahoj mám ukládání přes DOF2, udělal jsem si stock ,,NacistHrace" ale když jsem tam dal DOF2_GetString tak mám error.. stock NacistHrace(playerid) { new string[500]; new Pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, Pname, sizeof(Pname)); format(string, sizeof(string), "/Players/%s.ini",Pname); // ResetPlayerMoney(playerid); GivePlayerMoney(playerid, DOF2_GetInt(string, "Penize")); SetPlayerScore(playerid, DOF2_GetInt(string, "RPLevel")); SetPlayerSkin(playerid, DOF2_GetInt(string, "Skin")); Hrac[playerid][Vek] = DOF2_GetInt(string, "Vek"); Hrac[playerid][Pohlavi] = DOF2_GetInt(string, "Pohlavi"); Hrac[playerid][AdminLevel] = DOF2_GetInt(string, "AdminLevel"); Hrac[playerid][Velitel] = DOF2_GetInt(string, "Velitel"); Hrac[playerid][Zastupce] = DOF2_GetInt(string, "Zastupce"); Hrac[playerid][Frakce] = DOF2_GetInt(string, "Frakce"); Hrac[playerid][Job] = DOF2_GetInt(string, "Job"); Hrac[playerid][CK] = DOF2_GetInt(string, "CK"); Hrac[playerid][PK] = DOF2_GetInt(string, "PK"); PoziceX[playerid] = DOF2_GetInt(string,"PoziceX"); PoziceY[playerid] = DOF2_GetInt(string,"PoziceY"); PoziceZ[playerid] = DOF2_GetInt(string,"PoziceZ"); Hrac[playerid][HracSpawnut] = DOF2_GetInt(string,"HracSpawnut"); Hrac[playerid][Hodnost] = DOF2_GetString(string,"Hodnost"); // return 1; } Error: (1377) : error 047: array sizes do not match, or destination array is too small řádek 1377: Hrac[playerid][Hodnost] = DOF2_GetString(string,"Hodnost"); PS ano vím že ten error říká že velikosti pole neodpovídají, nebo cílového pole je příliš malý ale nevím jak to vyřešit.. Link to comment Share on other sites More sharing options...
0 Stellet 7 Odesláno: 28. Březen, 2015 Author Share Odesláno: 28. Březen, 2015 jak formát ? Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 28. Březen, 2015 Share Odesláno: 28. Březen, 2015 (upraveno) format(Hrac[playerid][Hodnost], dlzka, DOF2_GetString(string,"Hodnost")); Edited 28. Březen, 2015 by Lax. Link to comment Share on other sites More sharing options...
Dotaz
Stellet 7
Ahoj mám ukládání přes DOF2, udělal jsem si stock ,,NacistHrace" ale když jsem tam dal DOF2_GetString tak mám error..
Error:
řádek 1377:
PS ano vím že ten error říká že velikosti pole neodpovídají, nebo cílového pole je příliš malý
ale nevím jak to vyřešit..
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now