String misses a letter
#1

Nvm it is fixed now
Reply
#2

No clue. I guess you'll have to show everything where APlayerData[playerid][pAccent] gets modified.
Reply
#3

Edited for you vince
Reply
#4

HELP? :S
Reply
#5

You're not assigning the new APlayerData[playerid][pAccent] value in the command (CMD:accent)?
Reply
#6

New info: it only happens after i joined and leaved a car.... It changes the string in the database...
This is the code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective;
    if(GetVehicleModel(vehicleid) == 461 || 462 || 463 || 468 || 471 || 424 || 430 || 448 || 446 || 452 || 457 || 472 || 473 || 481 || 484 || 485 || 486 || 493 || 509 || 510 || 521 || 522 || 523 || 530 || 531 || 539 || 571 || 572 || 581 || 586 || 595)
    {
        APlayerData[playerid][Windows] = 2;
    }
    GetVehicleParamsEx(vehicleid, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
    SetVehicleParamsEx(vehicleid, 0, Lights, Alarm, Doors, Bonnet, Boot, Objective);
    APlayerData[playerid][EngineStarted] = 0;
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    new Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective;
    APlayerData[playerid][Windows] = -1;
    GetVehicleParamsEx(vehicleid, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
    SetVehicleParamsEx(vehicleid, 0, Lights, Alarm, Doors, Bonnet, Boot, Objective);
    APlayerData[playerid][EngineStarted] = 0;
    return 1;
}
And it now doesnt miss a letter... But uses the first letter and puts я after it... Got no idea how
Reply
#7

A bit off-topic but this shit doesn't work:
pawn Код:
...
    if(GetVehicleModel(vehicleid) == 461 || 462 || 463 || 468 || 471 || 424 || 430 || 448 || 446 || 452 || 457 || 472 || 473 || 481 || 484 || 485 || 486 || 493 || 509 || 510 || 521 || 522 || 523 || 530 || 531 || 539 || 571 || 572 || 581 || 586 || 595)
    {
...
What you do there is:
pawn Код:
if(GetVehicleModel(vehicleid) == 461 || 462 == true || 463 == true || ...)
What you want is:
pawn Код:
...
    switch(GetVehicleModel(vehicleid))
    {
        case 461, 462, 463, 468, 471, 424, 430, 448, 446, 452, 457, 472, 473, 481, 484, 485, 486, 493, 509, 510, 521, 522, 523, 530, 531, 539, 571, 572, 581, 586, 595:
        {
            APlayerData[playerid][Windows] = 2;
        }
    }
...
Also, as someone said, you're not assigning pAccent value in /accent command. Furthermore, I think it is your player saving system that spoils the accent string if it's not /accent.
Reply
#8

Which guys this?
Reply
#9

Quote:
Originally Posted by tyler12
Посмотреть сообщение
Which guys this?
What
Reply
#10

BUMP i still cant get it fixed... :S
~Edit fixed... Accedently made it an interger in Enum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)