Wysłany: 2018-02-13, 16:13
Shlasku
Uczeń Pawno
Wiek: 22 Na forum: 3207 dni Posty: 133
Nick w MP: luki1123
Piwa : 17
Witam, mam kod
Cytat: SaveTeleports()
{
new string[128];
new File: file = fopen("teleporty.cfg", io_write);
for(new i = 0; i < MAX_TELES; i++)
{
format(string, sizeof(string), "%s|%f|%f|%f|%f|%d|%d\r\n",
TeleInfo[i][tName],
TeleInfo[i][tX],
TeleInfo[i][tY],
TeleInfo[i][tZ],
TeleInfo[i][tA],
TeleInfo[i][tVW],
TeleInfo[i][tInt]);
fwrite(file, string);
}
return fclose(file);
}
i w tej linijce
Cytat: for(new i = 0; i < MAX_TELES; i++)
Otrzymuje blad:
Cytat: C:\Users\Luki\Desktop\Serwer PAS\gamemodes\pasgm3.pwn(906) : error 029: invalid expression, assumed zero
jakis pomysl?
Podpis
Zwykły szary człowiek z niezwykłymi umiejętnościami
Wysłany: 2018-02-13, 16:52
JestemSuperLIKE
Początkujący grafik
Wiek: 27 Na forum: 3694 dni Posty: 133
Piwa : 6
Mo?e tak?
Kod:
SaveTeleports()
{
new string[128];
new File: file = fopen("teleporty.cfg", io_write);
for(new i; i < MAX_TELES; i++)
{
format(string, sizeof(string), "%s|%f|%f|%f|%f|%d|%d\r\n",
TeleInfo[i][tName],
TeleInfo[i][tX],
TeleInfo[i][tY],
TeleInfo[i][tZ],
TeleInfo[i][tA],
TeleInfo[i][tVW],
TeleInfo[i][tInt]);
fwrite(file, string);
}
return fclose(file);
}
Wysłany: 2018-02-13, 21:35
U123 [Usunięty ]
Wysłany: 2018-02-20, 17:02
Anulator
Wiek: 26 Na forum: 3438 dni Posty: 23
Nick w MP: Deyw_
Gdzies brakuje zera, albo zle zdefiniowales
Tagi: assumed :: zero
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: