Guten Tag,
Bin grade dabei die SAPD Fahrzeuge zu machen.
Nun habe ich aber Warnings bei allen Fahrzeugen.
Hier:
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(58) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(59) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(60) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(61) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(62) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(63) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(64) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(65) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(66) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(67) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(68) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(69) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(70) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(71) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(72) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(73) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(74) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(75) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(76) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(77) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(78) : warning 202: number of arguments does not match definition
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(79) : warning 202: number of arguments does not match definition
Die ganzen definierungen.
Nr 1:
new SAPDFahrzeuge[22];
Nr. 2
forward SAPDFahrzeug(vehicleid);
public SAPDFahrzeug(vehicleid)
{
for(new i = 0; i < sizeof(SAPDFahrzeuge); i++)
{
if(vehicleid== SAPDFahrzeuge[i])
{
return 1;
}
}
return 0;
}
Dann habe ich noch ein Problem mit dem RemovePlayerFromVehicle hier der Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == SAPDFahrzeug(vehicleid)
{
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,Grau,"Du bist kein Beamter.");
{
SendClientMessage(playerid,Grau,"Du bist kein Beamter");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Der Error:
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(375) : error 017: undefined symbol "vehicleid"
Hoffe jemand kann schnell helfen :s
Gruß