bei mir hagelts Warnings un Errors O.o
ZitatAlles anzeigenC:\DOKUME~1\Jonathan\Desktop\SAMP02~1.WIN\GAMEMO~1\lvdm.pwn(264) : error 017: undefined symbol "dcmd_kick"
C:\DOKUME~1\Jonathan\Desktop\SAMP02~1.WIN\GAMEMO~1\lvdm.pwn(269) : error 017: undefined symbol "sscanf"
C:\DOKUME~1\Jonathan\Desktop\SAMP02~1.WIN\GAMEMO~1\lvdm.pwn(279) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOKUME~1\Jonathan\Desktop\SAMP02~1.WIN\GAMEMO~1\lvdm.pwn(287) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
dcmd_kick(playerid,params[])
{
new
sGrund[128],
pID;
if(sscanf(params, "dz",pID,sGrund))
{
return SendClientMessage(playerid,COLOR_RED,"USAGE: /kick [playerid] ([grund],optional)");
}
if(!IsPlayerConnected(pID))
{
return SendClientMessage(playerid,COLOR_RED,"Kein Spieler mit angegebener ID Online");
}
new
ThePlayer[MAX_PLAYER_NAME],
string[128];
GetPlayerName(pID,ThePlayer,sizeof(ThePlayer));
format(string,sizeof(string),"%s (ID %d) wurde vom Server gekickt,Grund: %s",ThePlayer,pID,sGrund[0] ? sGrund : "<Kein Grund>");
SendClientMessageToAll(COLOR_YELLOW,string);
Kick(pID);
return 1;
}
if(strcmp(cmd, "/mafiazu1", true) == 0) {
MoveObject (mafia1, 2635.129150, 1369.242554, 11.618702, 2.5);
return 1;
}