String misses a letter -
thimo - 06.01.2012
Nvm it is fixed now
Re: String misses a letter -
Vince - 06.01.2012
No clue. I guess you'll have to show everything where
APlayerData[playerid][pAccent] gets modified.
Re: String misses a letter -
thimo - 06.01.2012
Edited for you vince
Re: String misses a letter -
thimo - 07.01.2012
HELP? :S
Re: String misses a letter -
Ash. - 07.01.2012
You're not assigning the new APlayerData[playerid][pAccent] value in the command (CMD:accent)?
Re: String misses a letter -
thimo - 07.01.2012
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
Re: String misses a letter -
CaHbKo - 07.01.2012
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.
Re: String misses a letter -
tyler12 - 07.01.2012
Which guys this?
Re: String misses a letter -
CaHbKo - 07.01.2012
Quote:
Originally Posted by tyler12
Which guys this?
|
What
Re: String misses a letter -
thimo - 08.01.2012
BUMP i still cant get it fixed... :S
~Edit fixed... Accedently made it an interger in Enum