28.07.2011, 10:11
(
Последний раз редактировалось jueix; 28.07.2011 в 10:24.
Причина: code and errors
)
Right im trying to make a command /help but when i compile it gives me mils of errors like playermoveobject is not implemented when all i want is the help command to show cops what they need to do and to show all the rest what they have to do can any one help me here.
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/help", true) == 0)
{
if(gTeam[playerid] == 1)
{
SendClientMessage(playerid, COLOR_SKYBLUE, "you'r a cop you have to arrest people in ls");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You'r a civilian you have to run away from cops");
return 1;
}
errors:
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(19 : error 017: undefined symbol "cmd"
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(202) : error 017: undefined symbol "COLOR_SKYBLUE"
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : warning 217: loose indentation
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : error 004: function "OnRconCommand" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : error 004: function "OnObjectMoved" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : error 004: function "OnPlayerPickUpPickup" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/help", true) == 0)
{
if(gTeam[playerid] == 1)
{
SendClientMessage(playerid, COLOR_SKYBLUE, "you'r a cop you have to arrest people in ls");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You'r a civilian you have to run away from cops");
return 1;
}
errors:
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(19 : error 017: undefined symbol "cmd"
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(202) : error 017: undefined symbol "COLOR_SKYBLUE"
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : warning 217: loose indentation
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(211) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(216) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(221) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(226) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(231) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(236) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(241) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(246) : error 004: function "OnRconCommand" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(251) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(256) : error 004: function "OnObjectMoved" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(261) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : warning 225: unreachable code
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : error 029: invalid expression, assumed zero
C:\Users\Nathan\Desktop\Freedem\pawno\rp.pwn(266) : error 004: function "OnPlayerPickUpPickup" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.