GivePlayerID
#7

Quote:
Originally Posted by AtItsMax
Посмотреть сообщение
pawn Код:
CMD:cuff(playerid,params[])
{
new cuffedid; // defining the id which will be cuffed.
if(sscanf(params,"u",cuffedid)) return Sendclientmessage(playerid,-1,"/cuff [playerid]"); // use of sscanf
CuffHim(cuffedit); // your cuffing player function
SendClientMessage(cuffedid,"you have been cuffed"); // sends the cuffed player the message
return 1;
}
Im Doesnt use that but if yes I have this erors :

PHP код:
C:\Users\pcx\Desktop\CopsSystem.pwn(89) : error 017undefined symbol "taze"
C:\Users\pcx\Desktop\CopsSystem.pwn(95) : error 017undefined symbol "params"
C:\Users\pcx\Desktop\CopsSystem.pwn(107) : warning 225unreachable code
C
:\Users\pcx\Desktop\CopsSystem.pwn(89) : warning 203symbol is never used"CMD"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

The Lines :
PHP код:
   CMD:taze(playerid,params[])
   {
      if(
HandCuffs[playerid] == 1)
      {
         if(
HandCuffsTazed[playerid] == 1)
         {
           if(
sscanf(params,"u",tazed))
           {
           new 
Float:Health;
           
GetPlayerHealth(playerid,Health);
           
SetPlayerHealth(playerid,Health-5);
           
SetTimerEx("TazedTimer",12000,false,"d",playerid);
           
SetTimerEx("TazedStop",19700,false,"d",playerid);
           }
         }
      }
      return 
1;
   } 
Reply


Messages In This Thread
GivePlayerID - by Dixon_Smith - 16.09.2012, 13:40
Re: GivePlayerID - by C00K13M0N$73R - 16.09.2012, 13:41
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:45
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:45
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:48
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:48
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:54
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:55
Re: GivePlayerID - by Lordzy - 16.09.2012, 13:57
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:58

Forum Jump:


Users browsing this thread: 2 Guest(s)