ID:262937
 
Code:
mob
proc
Load()
var/savefile/client_file = new(Import())
if(client_file)
client_file["usr"] >> mob
return ..()
..()


Problem description:Create.dm:16:error:Import:undefined proc
Create.dm:18:error:mob:undefined var

what is wrong with this ive searched the fourms and this is how almost evrybody else has done it


mob
proc
Load()
var/savefile/client_file = new(client.Import())
if(client_file)
client_file["usr"] >> src // I don't know why you are labeling something usr, you shouldn't get "user" and "usr" confused


You don't need return ..() let alone return ..() then ..(). Firstly, once you use return it stops the proc/verb. Also, you have no reason to use ..() since you are defining the proc here and since this is top-level in the parent tree.
Import() is a client proc, so it needs to be called as "client.Import()" from within a mob proc...