more than one private car/personal car
#6

ok i done added this and i got errors (at the bottom)
btw did i mention that im a noob scripter so please explain like if your are explaining to a baby AND THANKS IN ADVANCE AND THANK YOU MARRICIO

pawn Код:
new vcar_names[MAX_PLAYER_NAME][25];

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid =GetPlayerVehicleID(playerid);
    new pname[MAX_PLAYER_NAME];
   

    GetPlayerName(playerid, pname, sizeof pname);
    if (newstate == PLAYER_STATE_DRIVER)
    {
         if (vehicleid == vcar[0])      //=============line 1422
         {
              if(strcmp(pname, vcar_names[0] true) == 0)

              {
                  SendClientMessage(playerid, COLOR_RED, "WELCOME VIP");
                  return 1;
              }
              else

              {
                  RemovePlayerFromVehicle(playerid);
                  SendClientMessage(playerid, COLOR_RED, "THIS VEHICLE DOES NOT BELONG TO YOU");
              }
         }
    }
    return 1;
}


// then you create them this way, setting their name/owner

vcar[0] = CreateVehicle(421, 1766.8463, -2116.9495, 13.3474, 269.9729, 166, 166, 30);
vcar_names[0] = "[XL]KAOS";
i get these errors
pawn Код:
:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1380) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 017: undefined symbol "vcar"
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
more than one private car/personal car - by kaos999 - 05.08.2013, 01:11
Re: more than one private car/personal car - by Marricio - 05.08.2013, 01:23
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 01:27
Re: more than one private car/personal car - by Marricio - 05.08.2013, 01:33
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 01:35
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 02:03
Re: more than one private car/personal car - by Isolated - 05.08.2013, 02:05
Re: more than one private car/personal car - by kaos999 - 05.08.2013, 02:06
Re: more than one private car/personal car - by Isolated - 05.08.2013, 02:11
Re: more than one private car/personal car - by Marricio - 05.08.2013, 02:23

Forum Jump:


Users browsing this thread: 2 Guest(s)