04.05.2013, 10:59
Hey guys, recently I've started creating a game mode. The thing is, one thing is stopping me... These errors:
Here is my script lines:
I personally don't see anything wrong with it.
Код:
C:\Users\Justin\Desktop\My RP Gamemode\gamemodes\My RP Gamemode.pwn(137) : error 001: expected token: ")", but found "[" C:\Users\Justin\Desktop\My RP Gamemode\gamemodes\My RP Gamemode.pwn(137) : error 029: invalid expression, assumed zero C:\Users\Justin\Desktop\My RP Gamemode\gamemodes\My RP Gamemode.pwn(137) : warning 215: expression has no effect C:\Users\Justin\Desktop\My RP Gamemode\gamemodes\My RP Gamemode.pwn(137) : error 001: expected token: ";", but found "]" C:\Users\Justin\Desktop\My RP Gamemode\gamemodes\My RP Gamemode.pwn(137) : fatal error 107: too many error messages on one line
Код:
stock RemoveZaiatWeapon(playerid, weaponid) { GunsBeingRemoved[playerid] = 1; ResetPlayerWeapons(playerid); GunsBeingRemoved[playerid] = 1; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); for(new w = 0; w < 13; w++) { GetPlayerWeaponData(playerid, w, TempGuns[w], TempGunsAmmo[w]); if(PlayerInfo[playerid][pWeapon][w] == weaponid) { PlayerInfo[playerid][pWeapon][w] = 0; TempGuns[w] = 0; TempGunsAmmo[w] = 0; } PlayerInfo[playerid][pWeapon][w] = 0; } for(new w = 0; w < 13; w++) { GiveZaiatWeapon(playerid, TempGuns[w], TempGunsAmmo[w]); } return 1; } stock SaveZaiatAmmo(playerid) { for(new i = 0; i < 13; i++) { new Guns[2][13]; GetPlayerWeaponData(playerid, i, Guns[0][i], Guns[1][i]); if(PlayerInfo[playerid][pWeapon][i] == Guns[0][i]) { PlayerInfo[playerid][pWeaponAmmo][i] = Guns[1][i]; } } return 1; }