Üdvözlet exstasy irt nekem az eggyik témámba ott erröl volt szó és ö irta így csináljam de hibát ir
new Cars[PizzaCars];
enum PizzaCars
{
pizza1,
pizza2,
pizza3,
pizza4,
pizza5,
pizza6,
pizza7,
pizza8,
};
public OnGameModeInit()
{
Cars[pizza1] = CreateVehicle(448,-1217.6991,1820.5642,41.3185,224.0079,3,6);
Cars[pizza2] = CreateVehicle(448,-1217.6991,1820.5642,41.3185,224.0079,3,6);
}
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_pizzas) //gTeam vagy amit használsz
{
SendClientMessage(playerid,-1,\"asd\");
}
else
{
SendClientMessage(playerid,-1,\"asd\");
}
}
}
Hibák:
C:\\Documents and Settings\\Csalad\\Asztal\\[HUN]RPG\\gamemodes\\ClonyRPG.pwn(63) : error 017: undefined symbol \"Cars\"
C:\\Documents and Settings\\Csalad\\Asztal\\[HUN]RPG\\gamemodes\\ClonyRPG.pwn(63) : error 017: undefined symbol \"pizza1\"
C:\\Documents and Settings\\Csalad\\Asztal\\[HUN]RPG\\gamemodes\\ClonyRPG.pwn(63) : error 029: invalid expression, assum
A 63as sorba ezvan
Cars[pizza1] = CreateVehicle(448,-1217.6991,1820.5642,41.3185,224.0079,3,6);
De a többivel is eztcsinálja