ich habe eig. schon alles aus einem benzinsystem eingebaut. nur wenn ich jetzt die zeilen fürs onplayercommandtext einfüge bekomme ich nen haufen an errors und zwar wollt ich das:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
if(strcmp(cmd, "/fill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsAtGasStation(playerid))
{
// nähste Tankstelle finden
new Float:olddistance = 999999;
new Float:newdistance;
new closest = -1;
new Float:GasX,Float:GasY,Float:GasZ;
for (new i = 0; i < sizeof(gGasStationLocations); i++)
{
GasX = gGasStationLocations[i][0];
GasY = gGasStationLocations[i][1];
GasZ = gGasStationLocations[i][2];
newdistance = GetDistanceBetweenPlayerToPoint(playerid,GasX,GasY,GasZ);
if (newdistance < olddistance)
{
olddistance = newdistance;
closest = i;
}
}
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Wird betankt! Bitte warten....",2000,3);
SetTimer("Fillup",RefuelWait,0);
gGasBiz[playerid] = closest+12;
Refueling[playerid] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY," Du bist an keiner Tankstelle!");
}
}
}
}
return 1;
}
einbauen.
dann kommen beim compilen diese fehler:
C:\_Sascha\SERVER\gamemodes\grk.pwn(198) : error 004: function "SendPlayerFormattedText" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(241) : error 004: function "OnPlayerUpdate" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(256) : error 017: undefined symbol "strtok"
C:\_Sascha\SERVER\gamemodes\grk.pwn(256) : error 033: array must be indexed (variable "cmd")
C:\_Sascha\SERVER\gamemodes\grk.pwn(267) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(269) : error 017: undefined symbol "strtok"
C:\_Sascha\SERVER\gamemodes\grk.pwn(269) : error 033: array must be indexed (variable "tmp")
C:\_Sascha\SERVER\gamemodes\grk.pwn(273) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(276) : error 004: function "Encrypt" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(277) : error 004: function "OnPlayerLogin" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(279) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(283) : error 017: undefined symbol "strtok"
C:\_Sascha\SERVER\gamemodes\grk.pwn(283) : error 033: array must be indexed (variable "tmp")
C:\_Sascha\SERVER\gamemodes\grk.pwn(287) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(292) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(296) : error 004: function "Encrypt" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(304) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(318) : error 004: function "OnPlayerLogin" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(319) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(327) : error 004: function "ShowStats" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(334) : error 079: inconsistent return types (array & non-array)
C:\_Sascha\SERVER\gamemodes\grk.pwn(343) : error 004: function "SendPlayerFormattedText" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(344) : error 004: function "SendPlayerFormattedText" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(345) : error 004: function "SendPlayerFormattedText" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(346) : error 004: function "SendPlayerFormattedText" is not implemented
C:\_Sascha\SERVER\gamemodes\grk.pwn(347) : error 079: inconsistent return types (array & non-array)
Alles anzeigen
jetz hab ich eig. kp
kann mir da vill. jemand helfen?