@ Leanart
if(strcmp(cmd, "/klau", true) == 0 || strcmp(cmd, "/klau", true) == 0)
{
if(IsPlayerConnected(playerid))
{
dcmd_klau(playerid,paramas[])
new pID
if(sscand(paramas, "d",pID))
{
return SendClientMessage(playerid, Color_Rot,"Benutzung: /klau [playerID] ");
}
if (!IsPlayerConnected(pID))
{
return SendClientMessage(playerid,ROT,"Kein Spieler mit der angegebenen ID online");
}
new Float xx, Float yy, Float zz;
string[128];
GetPlayerPos(pID,xx,yy,zz);
if(PlayerToPoint(2.0,playerid,xx,yy,zz))
{
GivePlayerMoney(playerid,200);
GivePlayerMoney(pID,-200);
}
else
{
SendClientMessage(playerid,FARBE,"Du bist nicht nah genug am Spieler");
return 1
}
}
}
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9004) : error 017: undefined symbol "dcmd_klau"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9005) : error 001: expected token: ";", but found "new"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9006) : error 001: expected token: ";", but found "if"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9006) : error 017: undefined symbol "sscand"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9012) : error 017: undefined symbol "ROT"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9014) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9014) : error 017: undefined symbol "xx"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9014) : error 017: undefined symbol "yy"
C:\Users\Andre\Desktop\New GF script2\gamemodes\gf.pwn(9014) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Game Mode ist: GF