Sziasztok.Itt az a probléma ha felszállok a motorra és bennevagyok a teamba akkorse küldi az üzit ha nem vagyok benne akkorse csinál semmit
enum PizzaCars
{
pizza1,
pizza2,
pizza3,
pizza4,
pizza5,
pizza6,
pizza7,
pizza8,
};
new Cars[PizzaCars];
public OnGameModeInit()
{
Cars[pizza1] = CreateVehicle(448,-1217.6991,1820.5642,41.3185,224.0079,3,6);
Cars[pizza2] = CreateVehicle(448,-1216.1300,1821.7080,41.3217,232.2743,3,6);
Cars[pizza3] = CreateVehicle(448,-1214.6353,1823.6606,41.3214,227.2637,3,6); // kocsi1
Cars[pizza4] = CreateVehicle(448,-1213.4908,1824.9019,41.3212,222.7614,3,6); // kocsi2
Cars[pizza5] = CreateVehicle(448,-1211.7169,1825.8458,41.3210,231.5375,3,6); // kocsi3
Cars[pizza6] = CreateVehicle(448,-1209.8794,1826.8552,41.3188,228.7408,3,6); // kocsi4
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[pizza1] || CarCheck == Cars[pizza2] || CarCheck == Cars[pizza3] || CarCheck == Cars[pizza4] || CarCheck == Cars[pizza5] || CarCheck == Cars[pizza6] || CarCheck == Cars[pizza7] || CarCheck == Cars[pizza8])
{
if(gTeam[playerid] == TEAM_FUTAR)
{
SendClientMessage(playerid,-1,\"Kezdõdhet a munka\");
}
else
{
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Csak warningok vannak.
Ezek.
warning 202: number of arguments does not match definition
59 es sorba ez található
Cars[pizza1] = CreateVehicle(448,-1217.6991,1820.5642,41.3185,224.0079,3,6);
És a többinek is ez a warningja