Szerző Téma: Autó kezelõ valaki le pawnozza?  (Megtekintve 829 alkalommal)

Autó kezelõ valaki le pawnozza?
« Dátum: 2012. március 18. - 19:21:54 »
0 Show voters
Van egy eredeti pwn fájl a filterscripts mappába az a neve,hogy test_cmds.pwn
Nos ebbõl kéne az a rész,hogy motoháztetõ/fel/le riasztó/be/ki lápma/fel/le csomagtartó/ki/be motor/be/ki
Nekem hibát ír :S
 
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
new engine,lights,alarm,doors,bonnet,boot,objective;
if(strcmp(cmd, \"/motorbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/motorki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztó\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztóki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpafel\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpale\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
    return 1;
}

 
Valahogy így van...

Nem elérhető tudvari

  • 1264
  • Fejlesztő
    • Profil megtekintése
Autó kezelõ valaki le pawnozza?
« Válasz #1 Dátum: 2012. március 18. - 19:28:08 »
0 Show voters
Milyen HIBÁT??? Mindig írd le a hibás sorokat,és magát a hibákat is amit pawno kiír.
De szerintem a VEHICLE_PARAMS_ON-nal van a probléma.Szerintem használd a 0-t és az 1-et.

Autó kezelõ valaki le pawnozza?
« Válasz #2 Dátum: 2012. március 18. - 19:36:29 »
0 Show voters
Idézetet írta: tudvari date=1332095288\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18723\" data-ipsquote-contentclass=\"forums_Topic
Milyen HIBÁT??? Mindig írd le a hibás sorokat,és magát a hibákat is amit pawno kiír.
De szerintem a VEHICLE_PARAMS_ON-nal van a probléma.Szerintem használd a 0-t és az 1-et.
 
már próbáltam sokszor és nem jó..

Autó kezelõ valaki le pawnozza?
« Válasz #3 Dátum: 2012. március 19. - 14:56:37 »
0 Show voters
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new engine,lights,alarm,doors,bonnet,boot,objective;
if(strcmp(cmd, \"/motorbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/motorki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztó\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztóki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpafel\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpale\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
return 0;
}

 

Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Autó kezelõ valaki le pawnozza?
« Válasz #4 Dátum: 2012. március 19. - 15:20:15 »
0 Show voters
Idézetet írta: Szabyxxx date=1332165397\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18723\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new engine,lights,alarm,doors,bonnet,boot,objective;
if(strcmp(cmd, \"/motorbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/motorki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
    return 1;
}
if(strcmp(cmd, \"/csmgbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/mbe\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztó\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/riasztóki\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpafel\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
if(strcmp(cmd, \"/lámpale\",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
return 0;
}

 

Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

 

A cmd változót törölni kell, és ahol az van, át kell írni cmdtext-re.

Autó kezelõ valaki le pawnozza?
« Válasz #5 Dátum: 2012. március 19. - 15:21:56 »
0 Show voters
1ST_Chr megcsináltam köszi és Szabyxxx neked is!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal