08.07.2012, 15:40
Hello! Fed up with previous bugs which couldn't fix I suggested to myself to make something other, and take a rest from these interior and exit bugs. Was making /duty and cmds for LSPD, so they can equip weapons, and this is what I got:
C:\Program Files\skripts\pawno\cop.pwn(106) : warning 217: loose indentation
C:\Program Files\skripts\pawno\cop.pwn(106) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(106) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(111) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(111) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(111) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(116) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(116) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(116) : error 004: function "OnPlayerStateChange" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(121) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(121) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(121) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(126) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(126) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(126) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(131) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(131) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(131) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(136) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(136) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(136) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(141) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(141) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(141) : error 004: function "OnRconCommand" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(146) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(146) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(146) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(151) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(151) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(151) : error 004: function "OnObjectMoved" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(156) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(156) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(156) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(161) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(161) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(161) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(166) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(166) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(166) : error 004: function "OnVehicleMod" is not implemented
It found mistake almost everywhere. I didnt touch places what he say, I just made this:
Why the heck it find mistakes everywhere, even though I didn't touch or came close to them?
C:\Program Files\skripts\pawno\cop.pwn(106) : warning 217: loose indentation
C:\Program Files\skripts\pawno\cop.pwn(106) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(106) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(111) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(111) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(111) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(116) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(116) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(116) : error 004: function "OnPlayerStateChange" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(121) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(121) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(121) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(126) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(126) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(126) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(131) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(131) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(131) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(136) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(136) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(136) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(141) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(141) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(141) : error 004: function "OnRconCommand" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(146) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(146) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(146) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(151) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(151) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(151) : error 004: function "OnObjectMoved" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(156) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(156) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(156) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(161) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(161) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(161) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Program Files\skripts\pawno\cop.pwn(166) : warning 225: unreachable code
C:\Program Files\skripts\pawno\cop.pwn(166) : error 029: invalid expression, assumed zero
C:\Program Files\skripts\pawno\cop.pwn(166) : error 004: function "OnVehicleMod" is not implemented
It found mistake almost everywhere. I didnt touch places what he say, I just made this:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/duty", cmdtext, true, 10) == 0) { if (IsPlayerInRangeOfPoint(playerid, 3.0, 258.7297,80.1776,1003.6406)) SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); if (strcmp("/copautomat", cmdtext, true, 10) == 0) { if (IsPlayerInRangeOfPoint(playerid, 3.0, 255.2583,73.7139,1003.6406)) GivePlayerWeapon(playerid, 31, 300); // Do something here return 1; } return 0; }