Search the Community
Showing results for tags '1bit by henry'.
-
Sojte robim si taký script a mam jeden error a neviem ho opravit Error: error 047: array sizes do not match, or destination array is too small Riadok: PlayerName(playerid) = dini_Get(cesta, "Meno"); tu je celí cod: #include a_samp stock PlayerName(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); return name; } public OnPlayerDisconnect(playerid, reason) { new cesta[50]; format(cesta, sizeof(cesta), "%s-pos.sav", PlayerName(playerid)); if(!dini_Exists(cesta)) // Ak neexistuje { dini_Create(cesta); // Vytvorý ho } new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); dini_Set(cesta, "Meno", PlayerName(playerid)); dini_FloatSet(cesta, "X", X); // Zapíše pozíciu (vytvorený bol v prechádzajúcom kroku takže žiadna podmienka nieje nutná) dini_FloatSet(cesta, "Y", Y); dini_FloatSet(cesta, "Z", Z); return 1; } public OnPlayerSpawn(playerid) { new Float:X,Float:Y,Float:Z; new cesta[50]; format(cesta, sizeof(cesta), "%s-pos.sav", PlayerName(playerid)); if(!dini_Exists(cesta)) { SetPlayerPos(playerid,1685.7253,-2334.6877,13.5469); } else { PlayerName(playerid) = dini_Get(cesta, "Meno"); X = dini_Float(cesta, "X"); Y = dini_Float(cesta, "Y"); Z = dini_Float(cesta, "Z"); SetPlayerPos(playerid, X, Y, Z); } return 1; } Prosim pomožte mi Dakujem
- 1 odpověď
-
- 2013
- 1bit by henry
-
(a 1 další)
Tagged with:
-
Sojte Ako by som vytvoril E-mail mislim vlastní e-mail napriklad niekto ma že [email protected] alebo [email protected] take niečo by som si chcel vytvorit ale neviem ako. Dakujem
- 11 odpovědí