Hallo Leute
Ich habe einen Kleine Fehler in meinem "System"
Code :
if(strcmp(cmd, "/fahrrad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(BMX[playerid] == 1)return SendClientMessage(playerid,ROT, "Du hast bereits ein Mietfahrzeug.");
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1718.7563,-1606.3607,13.5469))
{
if(GetPlayerMoney(playerid) < 50)return SendClientMessage(playerid, COLOR_GRAD2, "Du benötigst 50$ um ein Fahrrad mieten zu können.");
startbmx[playerid] = CreateVehicle(481, 1722.5128,-1604.1320,13.5469 ,1,1,-1); <Zeile 8631 | Der Fehler.
PutPlayerInVehicle(playerid, startbmx[playerid], 0);
GivePlayerCash(playerid, -50);
BMX[playerid] = 1;
SetVehicleParamsEx(startbmx[playerid], engine, light, alarm, 1, bonnet, boot, objective);
}
else
{
return 1;
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(BMX[playerid] == 1)return SendClientMessage(playerid,ROT, "Du hast bereits ein Mietfahrzeug.");
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1718.7563,-1606.3607,13.5469))
{
if(GetPlayerMoney(playerid) < 50)return SendClientMessage(playerid, COLOR_GRAD2, "Du benötigst 50$ um ein Fahrrad mieten zu können.");
startbmx[playerid] = CreateVehicle(481, 1722.5128,-1604.1320,13.5469 ,1,1,-1); <Zeile 8631 | Der Fehler.
PutPlayerInVehicle(playerid, startbmx[playerid], 0);
GivePlayerCash(playerid, -50);
BMX[playerid] = 1;
SetVehicleParamsEx(startbmx[playerid], engine, light, alarm, 1, bonnet, boot, objective);
}
else
{
return 1;
}
}
return 1;
}
Fehler :
C:\Users\Dominik\Desktop\Selfmade\gamemodes\LDL13.pwn(8631) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 7312 bytes
Code size: 777264 bytes
Data size: 41581388 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5249 cells (20996 bytes)
Total requirements:42382348 bytes
Code size: 777264 bytes
Data size: 41581388 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5249 cells (20996 bytes)
Total requirements:42382348 bytes
1 Warning.
Was Passiert?
Er Spawnt zwar das Fahrrad aber es kommt (wenn man sich eins Gemietet hat) "Unknow Command" und man wird nicht in das Rad Geportet ABER so Funktioniert es (nur Ande Cords (x,y,z)
if(strcmp(cmd, "/fahrrad", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(BMX[playerid] == 1)return SendClientMessage(playerid,ROT, "Du hast bereits ein Mietfahrzeug.");
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1718.7563,-1606.3607,13.5469))
{
if(GetPlayerMoney(playerid) < 50)return SendClientMessage(playerid, COLOR_GRAD2, "Du benötigst 50$ um ein Fahrrad mieten zu können.");
startbmx[playerid] = CreateVehicle(481, 159.8148,-1934.0365,3.7734,0.2291,1,1,-1);
PutPlayerInVehicle(playerid, startbmx[playerid], 0);
GivePlayerCash(playerid, -50);
BMX[playerid] = 1;
SetVehicleParamsEx(startbmx[playerid], engine, light, alarm, 1, bonnet, boot, objective);
}
else
{
return 1;
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(BMX[playerid] == 1)return SendClientMessage(playerid,ROT, "Du hast bereits ein Mietfahrzeug.");
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1718.7563,-1606.3607,13.5469))
{
if(GetPlayerMoney(playerid) < 50)return SendClientMessage(playerid, COLOR_GRAD2, "Du benötigst 50$ um ein Fahrrad mieten zu können.");
startbmx[playerid] = CreateVehicle(481, 159.8148,-1934.0365,3.7734,0.2291,1,1,-1);
PutPlayerInVehicle(playerid, startbmx[playerid], 0);
GivePlayerCash(playerid, -50);
BMX[playerid] = 1;
SetVehicleParamsEx(startbmx[playerid], engine, light, alarm, 1, bonnet, boot, objective);
}
else
{
return 1;
}
}
return 1;
}
Wäre Cool wenn ihr mir Helfen würdet!
LG
Crocky