26 errors :(
#1

Here you can see the errors :
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(224 -- 225) : error 035: argument type mismatch (argument 2)
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(226) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(231) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(235) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(23 : warning 217: loose indentation
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(23 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(23 : error 004: function "S@@_OnPlayerEnterVehicle" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(243) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(243) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(243) : error 004: function "S@@_OnPlayerExitVehicle" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(24 : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(24 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(24 : error 004: function "S@@_OnPlayerStateChange" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(253) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(253) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(253) : error 004: function "S@@_OnPlayerEnterCheckpoint" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(261) : warning 217: loose indentation
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(280) : warning 217: loose indentation
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(283) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(283) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(283) : error 004: function "S@@_OnPlayerLeaveCheckpoint" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(28 : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(28 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(28 : error 004: function "S@@_OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(293) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(293) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(293) : error 004: function "S@@_OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(29 : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(29 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(29 : error 004: function "S@@_OnRconCommand" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(303) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(303) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(303) : error 004: function "S@@_OnPlayerRequestSpawn" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(30 : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(30 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(30 : error 004: function "S@@_OnObjectMoved" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(313) : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(313) : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(313) : error 004: function "S@@_OnPlayerObjectMoved" is not implemented
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(31 : warning 225: unreachable code
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(31 : error 029: invalid expression, assumed zero
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(31 : error 004: function "S@@_OnPlayerPickUpPickup" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Here is the script:

}
if (strcmp("/loadtruck", cmdtext, true, 10) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
{
if(IsPlayerInRangeOfPoint(playerid, -14.1486,149.4052,2.6075,333.0295))
SendClientMessage(playerid, "You loaded your truck !"
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not near the loading place.");
return 1;
}
Reply
#2

PHP код:
}
if (
strcmp("/loadtruck"cmdtexttrue10) == 0)
{
if(
GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playeridCOLOR_RED"You are not driving a truck from the depot.");
if(
IsPlayerInRangeOfPoint(playerid, -14.1486,149.4052,2.6075,333.0295))
{
SendClientMessage(playeridCOLOR_GREEN"You loaded your truck !");
}
else
{
SendClientMessage(playeridCOLOR_RED"You are not near the loading place.");
}
return 
1;

Reply
#3

Try this:

Код:
        if (strcmp("/loadtruck", cmdtext, true, 10) == 0)
	{
	if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
	SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
        {
	if(IsPlayerInRangeOfPoint(playerid, -14.1486,149.4052,2.6075,333.0295))
	SendClientMessage(playerid, "You loaded your truck !"
	}
	else
	{
	SendClientMessage(playerid, COLOR_RED, "You are not near the loading place.");
        }
	return 1;
Edit: omg damn someone posted before me..
Reply
#4

It is working , thank you !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)