Compiler jokes
#1

Hi,

recently my compiler started to refuse compiling my gamemode.
When compiling it crashes with a segmentation fault.

Код:
[samp@*** gamemodes]$ pc blrp.pwn
Pawn compiler 3.2.3664                  Copyright © 1997-2006, ITB CompuPhase

Segmentation fault
I tracked source of the error down to this line:

Код:
carData[vehicleid][car_neon] = strval(tmp);
The array is defined as follows:
Код:
enum carData_ {
        car_owner,
        car_owner_dbid,
        car_dbid,
        car_team,
        car_minrank,
        car_job,
        car_job_driver,
        car_job_lastused,
        car_locked,
        car_fuel_enabled,
        car_fuel,
        car_tune_enabled,
        car_select_row,
        car_dlship,
        car_spawned,
        car_status,
        car_static,
        car_neon,
        car_neon_obj1,
        car_neon_obj2
}

new carData[MAX_VEHICLES][carData_];
When removing this line the whole thing works just fine even though
this is not the only place in the gamemode where I access this array
in the exact same way.

I hope someone can help me.

Thanks,
Blowfish
Reply
#2

Hehe, maybe next time, ******.

I set up a Windows XP SP3 VM and tried to compile it there,
which also failed, because running the compiler caused the following
error:
Код:
This application has failed to start because the application configuration
is incorrect.
Searching for it on ****** brought me to this thread,
which sadly was not helpful at all...
Reply
#3

Never mind, I was now able to solve my problem with this simple workaround:

Код:
new pawnfuckingsucks = strval(tmp);
carData[vehicleid][car_neon] = pawnfuckingsucks;
Thanks for your attempt to help anyway, ******.
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Edit: I have to say I'm a little disappointed by this topic, the title led me to think you had actually written jokes about compilers...
I expected the same D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)