Witam dzisiaj natrafi?em na b??d i nie wiem jak go naprawi?
C:\Users\ja\Desktop\samp037_svr_R2-1-1_win32\gamemodes\testy.pwn(122) : error 029: invalid expression, assumed zero
C:\Users\ja\Desktop\samp037_svr_R2-1-1_win32\gamemodes\testy.pwn(122) : error 001: expected token: ";", but found "return"
C:\Users\ja\Desktop\samp037_svr_R2-1-1_win32\gamemodes\testy.pwn(122) : error 017: undefined symbol "i"
C:\Users\ja\Desktop\samp037_svr_R2-1-1_win32\gamemodes\testy.pwn(122) : fatal error 107: too many error messages on one line
Kod od 116 do 132 linijki
forward public LoadVehicleData(vehicleID, name[], value[]);
public LoadVehicleData(vehicleID, name[], value[]) // This a callback with the parameter of the vehicleID send from our VehicleLoad function. This function will pretty much parse the data from the file.
{
new strLoc[8]; // Will hold the location key name dynamically.
// The first argument is the key and the second argument is the data which will hold the value of that key.
INI_Int("model", VehicleInfo[vehicleID][vModel]);
for(new i = 0; i < 4; i++) format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]);
// Looping through our location data and retrive it. Loc0 = LocX, Loc1 = LocY, Loc2 = LocZ, Loc3 = LocA.
INI_Int("color1", VehicleInfo[vehicleID][vColor1]); // You should've guessed it by now.
INI_Int("color2", VehicleInfo[vehicleID][vColor2]);
INI_Int("respawn", VehicleInfo[vehicleID][vRespawn]);
INI_String("owner", VehicleInfo[vehicleID][vOwner], MAX_PLAYER_NAME);
VehicleInfo[vehicleID][vLocked] = INI_Int("locked") == 1 ? true : false;
//Converting the locked data from int(whole number) to bool(true/false) and assign it.
return 1;
}
linijka 122 to
for(new i = 0; i < 4; i++) format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]);
Je?eli to zmienie to i tak mam ten sam b??d w linijce
for(new i = 0; i < 4; i++) format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]);
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach