nabend leute;
ich bekomm bei diesem hier:
dcmd_getdistance(playerid, params[])
{
new pID
if(sscanf(params, "d", pID)) {
return SendClientMessage(playerid, COLOR_RED, "BENUTZE: /getdistance [playerid]");
}
if(!IsPlayerConnected(pID)) {
return SendClientMessage(playerid, COLOR_RED, "Kein Spieler mit dieser ID online!");
}
new string[128];
new distance = GetDistanceBetweenPlayers(playerid, pID);
format (string, sizeof(string)), "Deine Entfernung von %s beträgt %s Einheiten!", pID, distance);
SendClientMessage(playerid, COLOR_BLUE, string);
return 1;
}
folgende errors:
Code
: error 001: expected token: ";", but found "if"
(514) : error 017: undefined symbol "GetDistanceBetweenPlayers"
(515) : warning 202: number of arguments does not match definition
(515) : warning 215: expression has no effect
(515) : warning 215: expression has no effect
(515) : warning 215: expression has no effect
(515) : error 001: expected token: ";", but found ")"
(515) : error 029: invalid expression, assumed zero
(515) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Alles anzeigen
was habe ich fallsch gemacht?
mfg xXganzereuroXx