Compiler jokes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compiler jokes (
/showthread.php?tid=310058)
Compiler jokes -
Blowfish - 10.01.2012
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
AW: Compiler jokes -
Blowfish - 10.01.2012
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...
AW: Compiler jokes -
Blowfish - 10.01.2012
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, ******.
Re: Compiler jokes -
MR,Mr - 10.01.2012
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: