15.05.2010, 16:16
I think, result is:
I put 100 drugs, then result 100 or it's car ID?
/trunk command: http://pawn.pastebin.com/B6ThWLWt
I removed 2 thing's "Float:" and i get 2 warning's.
Output
Code
Full Code
I put 100 drugs, then result 100 or it's car ID?
/trunk command: http://pawn.pastebin.com/B6ThWLWt
I removed 2 thing's "Float:" and i get 2 warning's.
Output
Код:
C:\Documents and Settings\Kasutaja\My Documents\SAMP\gamemodes\sg.pwn(48150) : warning 213: tag mismatch C:\Documents and Settings\Kasutaja\My Documents\SAMP\gamemodes\sg.pwn(48151) : warning 213: tag mismatch
Код:
vehTrunkMats[idx] = floatstr(arrCoords[10]); vehTrunkDrugs[idx] = floatstr(arrCoords[11]);
Код:
public LoadTrunk() { new arrCoords[13][64]; new strFromFile2[256]; new File: file = fopen("trunk.cfg", io_read); if (file) { new idx = 1; while (idx < sizeof(CarInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); vehTrunk[idx][1] = strval(arrCoords[0]); vehTrunkAmmo[idx][1] = strval(arrCoords[1]); vehTrunk[idx][2] = strval(arrCoords[2]); vehTrunkAmmo[idx][2] = strval(arrCoords[3]); vehTrunk[idx][3] = strval(arrCoords[4]); vehTrunkAmmo[idx][3] = strval(arrCoords[5]); vehTrunk[idx][4] = strval(arrCoords[6]); vehTrunkAmmo[idx][4] = strval(arrCoords[7]); vehTrunkCounter[idx] = strval(arrCoords[8]); vehTrunkArmour[idx] = floatstr(arrCoords[9]); vehTrunkMats[idx] = floatstr(arrCoords[10]); vehTrunkDrugs[idx] = floatstr(arrCoords[11]); idx++; } } return 1; }