25-01-2019, 05:06 AMofficialarcher Wrote: Hmmm.. Bit of a weird one, having the sql error a few others had, everything is definitely setup correct, have setup other santos versions before no issues, tried local databases, and remote ones, tymsql, mysqloo etc etc is all setup correctly but still get
[ERROR] gamemodes/santosrp/gamemode/init.lua:63: attempt to index field 'PlayerAnims' (a nil value)
1. unknown - gamemodes/santosrp/gamemode/init.lua:63
[ERROR] gamemodes/santosrp/gamemode/init.lua:68: attempt to index field 'SQL' (a nil value)
Will look into it but i'm gonna test a different version of santos with the same setup and see if that works and then update you all
Make sure you are using the legacy version of tmysql
also;
this doesnt showcase the id above their head but you can do it yourself.
use: pPlayer:GetCharacterID() in cl_buddies.lua
copy & paste code:
if( self:IsBuddyWith( pPlayer ) ) then
surface.DrawText( pPlayer:Nick() .. " (#" .. tostring(pPlayer:GetCharacterID()) .. ")" )
elseif( admin check here ) then
surface.SetTextColor( 255, 255, 255, 255 )
surface.DrawText( pPlayer:Nick() .. " (#" .. tostring(pPlayer:GetCharacterID()) .. ")" )
else
surface.DrawText( "#" .. tostring(pPlayer:GetCharacterID()) .. "" )
end
surface.DrawText( pPlayer:Nick() .. " (#" .. tostring(pPlayer:GetCharacterID()) .. ")" )
elseif( admin check here ) then
surface.SetTextColor( 255, 255, 255, 255 )
surface.DrawText( pPlayer:Nick() .. " (#" .. tostring(pPlayer:GetCharacterID()) .. ")" )
else
surface.DrawText( "#" .. tostring(pPlayer:GetCharacterID()) .. "" )
end