Hallo Breadfish,
Ich habe einen Warning in meinem Script die genannte Zeile werde ich mit //Diese Zeile makieren.
Zitat
C:\---\---\---\---\---\---\---\---(15305) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
if(!strcmp(cmd, "/supcar", true))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
return SendClientMessage(playerid, COLOR_RED, "* Du bist nicht befugt.");
}
if(SupCar[playerid] != 999)
{
DestroyVehicle(SupCar[playerid]);
SendClientMessage(playerid, COLOR_LIGHTRED, "* Supporterfahrzeug gelöscht.");
SupCar[playerid] = 999;
}
else
{
new Float:xb, Float:yb, Float:zb, Float:zab;
GetPlayerPos(playerid, xb, yb, zb);
GetPlayerFacingAngle(playerid, zab);
SupCar[playerid] = CreateVehicle(470, xb, yb, zb, zab, 1, 1, -1);
PutPlayerInVehicle(playerid, SupCar[playerid], 0);
SendClientMessage(playerid, COLOR_GREEN, "* Supportercar erstellt.");
new name[MAX_PLAYER_NAME];
vehicle3Dtext = Create3DTextLabel("Support Fahrzeug\nvon %s",ROT,0.0,0.0,0.0,50.0,0,1,name); //Diese Zeile
Attach3DTextLabelToVehicle( vehicle3Dtext, SupCar[playerid], 0.0, 0.0, 1.0);
}
return 1;
}
Mit freundlichen Grüßen
Vito.Castello