Show Posts
|
Pages: [1]
|
4
|
Scripting / Module Releases / Re: Juppi's MySQL Module (lu_mysql)
|
on: August 14, 2013, 11:18:40 pm
|
Sorry for the bump, but i have server problems with the lu_mysql.so for linux.
AN ERROR HAS OCCURED [getVarInfo: Could not retrieve UserData]
I put everything perfectly, indeed, on my pc works 100% but linux does not. I have tried all, apt-get update, upgrade, aptitude, reinstall the os... but nothing. Maybe i miss a lib or something. I use Debian 7 with the latest updates, same as MySQL.
|
|
|
9
|
Scripting / Script Snippets / Re: lock/unlock script
|
on: July 02, 2013, 09:39:01 pm
|
I have a more efficient script for this...: function onPlayerCommand( pPlayer, szCommand, szArgs ) { if ( szCommand == "lock" ) { if ( !pPlayer.Spawned ) { MessagePlayer( "You're not spawned.", pPlayer ); return; } if ( !pPlayer.Vehicle ) { MessagePlayer( "You're not in a vehicle.", pPlayer ); return; } if ( pPlayer.VehicleSeat > 0 ) { MessagePlayer( "You're not the driver on this vehicle.", pPlayer ); return; } if ( !szArgs ) { MessagePlayer( "Locks or unlocks the doors of your vehicle. Usage: /" + szCommand + " < ON / OFF >", pPlayer ); return; } local veh = pPlayer.Vehicle; switch ( szArgs ) { case "on": if ( veh.Locked ) { MessagePlayer( "This vehicle is already locked.", pPlayer ); return; }
veh.Locked = true; MessagePlayer( "You have locked the doors of the vehicle.", pPlayer ); break; case "off": if ( !veh.Locked ) { MessagePlayer( "This vehicle is already unlocked.", pPlayer ); return; }
veh.Locked = false; MessagePlayer( "You have unlock the doors of the vehicle.", pPlayer ); break; default: MessagePlayer( "Unknown usage! Usage: /" + szCommand + " < ON / OFF >", pPlayer ); break; } }
return 1; }
Credits: Me
|
|
|
|