Kapiert :>
2Tes problem xD
hab das ganze jz so
ocmd:tazer(playerid,params[])
{
if(!IsPlayerInFrakt(playerid,1)) return SendClientMessage(playerid,grau,"Du bist kein Cop!");
new string[128];
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerNearPlayer(playerid, i, 5))
{
TogglePlayerControllable(i,0);
ApplyAnimation(i,"CRACK","crckdeth2",4.0, 1, 0, 0, 0, 0);
SetTimerEx("tazed",10000,0,"i",i);
GameTextForPlayer(i,"Geschokt!",10000,0);
}
}
}
return 1;
}
und das public
public tazed(i)
{
TogglePlayerControllable(i,1);
}
aber das geht nicht wie mach ich das?
Erros
C:\Users\Mike\Desktop\selfmade.pwn(2546) : warning 204: symbol is assigned a value that is never used: "string"
C:\Users\Mike\Desktop\selfmade.pwn(3015) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
MFG Stein