[POMOC]Ucitavanje stanova

Započeo propalica2131231, Februar 24, 2012, 20:25:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Uradio sam stan system po house systemu u CLRP modu al sad ih nece ucitat kad upalim srv :S
Dio skripte:
stock LoadStans()
{
new arrCoords[30][64];
new strFromFile2[256];
new File: file = fopen("cfg/stan.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(StanInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
StanInfo[idx][sEntrancex] = floatstr(arrCoords[0]);
StanInfo[idx][sEntrancey] = floatstr(arrCoords[1]);
StanInfo[idx][sEntrancez] = floatstr(arrCoords[2]);
StanInfo[idx][sExitx] = floatstr(arrCoords[3]);
StanInfo[idx][sExity] = floatstr(arrCoords[4]);
StanInfo[idx][sExitz] = floatstr(arrCoords[5]);
StanInfo[idx][sHealthx] = strval(arrCoords[6]);
StanInfo[idx][sHealthy] = strval(arrCoords[7]);
StanInfo[idx][sHealthz] = strval(arrCoords[8]);
StanInfo[idx][sArmourx] = strval(arrCoords[9]);
StanInfo[idx][sArmoury] = strval(arrCoords[10]);
StanInfo[idx][sArmourz] = strval(arrCoords[11]);
strmid(StanInfo[idx][sOwner], arrCoords[12], 0, strlen(arrCoords[12]), 255);
strmid(StanInfo[idx][sDiscription], arrCoords[13], 0, strlen(arrCoords[13]), 255);
StanInfo[idx][sValue] = strval(arrCoords[14]);
StanInfo[idx][sHel] = strval(arrCoords[15]);
StanInfo[idx][sArm] = strval(arrCoords[16]);
StanInfo[idx][sInt] = strval(arrCoords[17]);
StanInfo[idx][sLock] = strval(arrCoords[18]);
StanInfo[idx][sOwned] = strval(arrCoords[19]);
StanInfo[idx][sRooms] = strval(arrCoords[20]);
StanInfo[idx][sRent] = strval(arrCoords[21]);
StanInfo[idx][sRentabil] = strval(arrCoords[22]);
StanInfo[idx][sTakings] = strval(arrCoords[23]);
StanInfo[idx][sVec] = strval(arrCoords[24]);
          if(StanInfo[idx][sVec] == 457)
{
StanInfo[idx][sVec] = 411;
}
StanInfo[idx][sVcol1] = strval(arrCoords[25]);
StanInfo[idx][sVcol2] = strval(arrCoords[26]);
StanInfo[idx][sDate] = strval(arrCoords[27]);
StanInfo[idx][sLevel] = strval(arrCoords[28]);
StanInfo[idx][sWorld] = strval(arrCoords[29]);

printf("(EG!) Stan %d ucitan.",idx)
idx++;
}
fclose(file);
}
return 1;
}

Evo server log

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[20:23:34] filterscripts = ""  (string)
[20:23:34]
[20:23:34] Server Plugins
[20:23:34] --------------
[20:23:34]  Loading plugin: sscanf
[20:23:34]

[20:23:34]  ===============================

[20:23:34]       sscanf plugin loaded.     

[20:23:34]    (c) 2009 Alex "Y_Less" Cole

[20:23:34]    0.3d-R2 500 Players "dnee"

[20:23:34]  ===============================

[20:23:34]   Loaded.
[20:23:34]  Loading plugin: streamer
[20:23:34]

*** Streamer Plugin v2.5.2 R2 by Incognito loaded ***

[20:23:34]   Loaded.
[20:23:34]  Loaded 2 plugins.

[20:23:35]
[20:23:35] Filterscripts
[20:23:35] ---------------
[20:23:35]   Loaded 0 filterscripts.

[20:23:35] foreach called
[20:23:35] (EG!) Kuca 0 ucitana.
[20:23:35] (EG!) Kuca 1 ucitana.
[20:23:35] (EG!) Kuca 2 ucitana.
[20:23:35] (EG!) Kuca 3 ucitana.
[20:23:35] (EG!) Kuca 4 ucitana.
[20:23:35] (EG!) Kuca 5 ucitana.
[20:23:35] (EG!) Kuca 6 ucitana.
[20:23:35] (EG!) Kuca 7 ucitana.
[20:23:35] (EG!) Kuca 8 ucitana.
[20:23:35] (EG!) Kuca 9 ucitana.
[20:23:35] (EG!) Kuca 10 ucitana.
[20:23:35] (EG!) Kuca 11 ucitana.
[20:23:35] (EG!) Kuca 12 ucitana.
[20:23:35] (EG!) Kuca 13 ucitana.
[20:23:35] (EG!) Kuca 14 ucitana.
[20:23:35] (EG!) Kuca 15 ucitana.
[20:23:35] (EG!) Kuca 16 ucitana.
[20:23:35] (EG!) Kuca 17 ucitana.
[20:23:35] (EG!) Kuca 18 ucitana.
[20:23:35] (EG!) Kuca 19 ucitana.
[20:23:35] (EG!) Kuca 20 ucitana.
[20:23:35] (EG!) Kuca 21 ucitana.
[20:23:35] (EG!) Kuca 22 ucitana.
[20:23:35] (EG!) Kuca 23 ucitana.
[20:23:35] (EG!) Kuca 24 ucitana.
[20:23:35] (EG!) Kuca 25 ucitana.
[20:23:35] (EG!) Kuca 26 ucitana.
[20:23:35] (EG!) Kuca 27 ucitana.
[20:23:35] (EG!) Kuca 28 ucitana.
[20:23:35] (EG!) Kuca 29 ucitana.
[20:23:35] (EG!) Kuca 30 ucitana.
[20:23:35] (EG!) Kuca 31 ucitana.
[20:23:35] (EG!) Kuca 32 ucitana.
[20:23:35] (EG!) Kuca 33 ucitana.
[20:23:35] (EG!) Kuca 34 ucitana.
[20:23:35] (EG!) Kuca 35 ucitana.
[20:23:35] (EG!) Kuca 36 ucitana.
[20:23:35] (EG!) Kuca 37 ucitana.
[20:23:35] (EG!) Kuca 38 ucitana.
[20:23:35] (EG!) Kuca 39 ucitana.
[20:23:35] (EG!) Kuca 40 ucitana.
[20:23:35] (EG!) Kuca 41 ucitana.
[20:23:35] (EG!) Kuca 42 ucitana.
[20:23:35] (EG!) Kuca 43 ucitana.
[20:23:35] (EG!) Kuca 44 ucitana.
[20:23:35] (EG!) Kuca 45 ucitana.
[20:23:35] (EG!) Kuca 46 ucitana.
[20:23:35] (EG!) Kuca 47 ucitana.
[20:23:35] (EG!) Kuca 48 ucitana.
[20:23:35] (EG!) Kuca 49 ucitana.
[20:23:35] (EG!) Kuca 50 ucitana.
[20:23:35] (EG!) Kuca 51 ucitana.
[20:23:35] (EG!) Kuca 52 ucitana.
[20:23:35] (EG!) Kuca 53 ucitana.
[20:23:35] (EG!) Kuca 54 ucitana.
[20:23:35] (EG!) Kuca 55 ucitana.
[20:23:35] (EG!) Kuca 56 ucitana.
[20:23:35] (EG!) Kuca 57 ucitana.
[20:23:35] (EG!) Kuca 58 ucitana.
[20:23:35] (EG!) Kuca 59 ucitana.
[20:23:35] (EG!) Kuca 60 ucitana.
[20:23:35] (EG!) Kuca 61 ucitana.
[20:23:35] (EG!) Kuca 62 ucitana.
[20:23:35] (EG!) Kuca 63 ucitana.
[20:23:35] (EG!) Kuca 64 ucitana.
[20:23:35] (EG!) Kuca 65 ucitana.
[20:23:35] (EG!) Kuca 66 ucitana.
[20:23:35] (EG!) Kuca 67 ucitana.
[20:23:35] (EG!) Kuca 68 ucitana.
[20:23:35] (EG!) Kuca 69 ucitana.
[20:23:35] (EG!) Kuca 70 ucitana.
[20:23:35] (EG!) Kuca 71 ucitana.
[20:23:35] (EG!) Kuca 72 ucitana.
[20:23:35] (EG!) Kuca 73 ucitana.
[20:23:35] (EG!) Kuca 74 ucitana.
[20:23:35] (EG!) Kuca 75 ucitana.
[20:23:35] (EG!) Kuca 76 ucitana.
[20:23:35] (EG!) Kuca 77 ucitana.
[20:23:35] (EG!) Kuca 78 ucitana.
[20:23:35] (EG!) Kuca 79 ucitana.
[20:23:35] (EG!) Kuca 80 ucitana.
[20:23:35] (EG!) Kuca 81 ucitana.
[20:23:35] (EG!) Kuca 82 ucitana.
[20:23:35] (EG!) Kuca 83 ucitana.
[20:23:35] (EG!) Kuca 84 ucitana.
[20:23:35] (EG!) Kuca 85 ucitana.
[20:23:35] (EG!) Kuca 86 ucitana.
[20:23:35] (EG!) Kuca 87 ucitana.
[20:23:35] (EG!) Kuca 88 ucitana.
[20:23:35] (EG!) Kuca 89 ucitana.
[20:23:35] (EG!) Kuca 90 ucitana.
[20:23:35] (EG!) Kuca 91 ucitana.
[20:23:35] (EG!) Kuca 92 ucitana.
[20:23:35] (EG!) Kuca 93 ucitana.
[20:23:35] (EG!) Kuca 94 ucitana.
[20:23:35] (EG!) Kuca 95 ucitana.
[20:23:35] (EG!) Kuca 96 ucitana.
[20:23:35] (EG!) Kuca 97 ucitana.
[20:23:35] (EG!) Kuca 98 ucitana.
[20:23:35] (EG!) Kuca 99 ucitana.
[20:23:35] (EG!) Kuca 100 ucitana.
[20:23:35] (EG!) Kuca 101 ucitana.
[20:23:35] (EG!) Kuca 102 ucitana.
[20:23:35] (EG!) Kuca 103 ucitana.
[20:23:35] (EG!) Kuca 104 ucitana.
[20:23:35] (EG!) Kuca 105 ucitana.
[20:23:35] (EG!) Kuca 106 ucitana.
[20:23:35] (EG!) Kuca 107 ucitana.
[20:23:35] (EG!) Kuca 108 ucitana.
[20:23:35] (EG!) Kuca 109 ucitana.
[20:23:35] (EG!) Kuca 110 ucitana.
[20:23:35] (EG!) Kuca 111 ucitana.
[20:23:35] (EG!) Kuca 112 ucitana.
[20:23:35] (EG!) Kuca 113 ucitana.
[20:23:35] (EG!) Kuca 114 ucitana.
[20:23:35] (EG!) Kuca 115 ucitana.
[20:23:35] (EG!) Kuca 116 ucitana.
[20:23:35] (EG!) Kuca 117 ucitana.
[20:23:35] (EG!) Kuca 118 ucitana.
[20:23:35] (EG!) Kuca 119 ucitana.
[20:23:35] (EG!) Kuca 120 ucitana.
[20:23:35] (EG!) Kuca 121 ucitana.
[20:23:35] (EG!) Kuca 122 ucitana.
[20:23:35] (EG!) Kuca 123 ucitana.
[20:23:35] (EG!) Kuca 124 ucitana.
[20:23:35] (EG!) Kuca 125 ucitana.
[20:23:35] (EG!) Kuca 126 ucitana.
[20:23:35] (EG!) Kuca 127 ucitana.
[20:23:35] (EG!) Kuca 128 ucitana.
[20:23:35] (EG!) Kuca 129 ucitana.
[20:23:35] (EG!) Kuca 130 ucitana.
[20:23:35] (EG!) Kuca 131 ucitana.
[20:23:35] (EG!) Kuca 132 ucitana.
[20:23:35] (EG!) Kuca 133 ucitana.
[20:23:35] (EG!) Kuca 134 ucitana.
[20:23:35] (EG!) Kuca 135 ucitana.
[20:23:35] (EG!) Kuca 136 ucitana.
[20:23:35] (EG!) Kuca 137 ucitana.
[20:23:35] (EG!) Firma 0 ucitana.
[20:23:35] (EG!) Firma 1 ucitana.
[20:23:35] (EG!) Firma 2 ucitana.
[20:23:35] (EG!) Firma 3 ucitana.
[20:23:35] (EG!) Firma 4 ucitana.
[20:23:35] (EG!) Firma 5 ucitana.
[20:23:35] (EG!) Firma 6 ucitana.
[20:23:35] (EG!) Firma 7 ucitana.
[20:23:35] (EG!) Firma 8 ucitana.
[20:23:35] (EG!) Firma 9 ucitana.
[20:23:35] (EG!) Firma 10 ucitana.
[20:23:35] (EG!) Firma 11 ucitana.
[20:23:35] (EG!) Firma 12 ucitana.
[20:23:35] (EG!) Firma 13 ucitana.
[20:23:35] (EG!) Firma 14 ucitana.
[20:23:35] (EG!) Firma 15 ucitana.
[20:23:35] (EG!) Firma 16 ucitana.
[20:23:35] (EG!) Firma 17 ucitana.
[20:23:35] (EG!) SFirma 0 ucitana.
[20:23:35] (EG!) SFirma 1 ucitana.
[20:23:35] (EG!) SFirma 2 ucitana.
[20:23:35] (EG!) SFirma 3 ucitana.
[20:23:35] (EG!) SFirma 4 ucitana.
[20:23:35] (EG!) SFirma 5 ucitana.
[20:23:35] (EG!) SFirma 6 ucitana.
[20:23:35] (EG!) SFirma 7 ucitana.
[20:23:35] (EG!) SFirma 8 ucitana.
[20:23:35] (EG!) SFirma 9 ucitana.
[20:23:35] (EG!) SFirma 10 ucitana.
[20:23:35] (EG!) SFirma 11 ucitana.
[20:23:35] (EG!) SFirma 12 ucitana.
[20:23:35] (EG!) SFirma 13 ucitana.
[20:23:35] (EG!) SFirma 14 ucitana.
[20:23:35] (EG!) SFirma 15 ucitana.
[20:23:35] (EG!) SFirma 16 ucitana.
[20:23:35] (EG!) SFirma 17 ucitana.
[20:23:35] (EG!) SFirma 18 ucitana.
[20:23:35] (EG!) SFirma 19 ucitana.
[20:23:35] (EG!) SFirma 20 ucitana.
[20:23:35] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[20:23:35] Loading 71 pickups... Loaded successfuly !
[20:23:35] |----------------------------------|
[20:23:35] | Elite Gaming RolePlay | (c) 2011 |
[20:23:35] | BY DON MAKAVELI                  |
[20:23:35] |----------------------------------|
[20:23:35] Number of vehicle models: 61

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Dodo sam stan.cfg i dodo 3 stana al nece :S

Jesi stavio pod OnGameModeInit:


LoadStans();


Neznam jesi kopirao save sistem kopiraj i to.. i ubaci pod OnGameModeExit..

Citat: dock poslato Februar 24, 2012, 20:30:51 POSLE PODNE
Jesi stavio pod OnGameModeInit:


LoadStans();


Neznam jesi kopirao save sistem kopiraj i to.. i ubaci pod OnGameModeExit..
hvala rijesio sam radi  :)