03.01.2011, 16:51
Hello, again...
I tried to merge filterscript with gamemode, I pasted code from filterscript into gamemode:
But, when I paste this code in my gamemode under OnPlayerCommandText, it gives following errors:
But when this code was in FS all worked correctly, but inside GM it gives errors...
I tried to merge filterscript with gamemode, I pasted code from filterscript into gamemode:
Код:
{ if (strcmp("/arm", cmdtext, true, 10) == 0) { PutRiotShieldOnArm(playerid); return 1; } if (strcmp("/armoff", cmdtext, true, 10) == 0) { if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2); } return 0; } RemoveItems(playerid) { if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2); } PutRiotShieldOnArm(playerid) { if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1); SetPlayerAttachedObject(playerid, 1, 18637, 3, 0.3, -0.2, 0, 180, 170, 270, 1, 1, 1); }
Quote:
error 017: undefined symbol "PutRiotShieldOnArm" undefined symbol "RemoveItems" undefined symbol "PutRiotShieldOnArm" warning 225: unreachable code |