SA-MP Forums Archive
Callback. - 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: Callback. (/showthread.php?tid=600815)



Callback. - Bruker - 13.02.2016

Do not call the callback "OnClanInsert".
Код HTML:
new ORM:ormid = Clan[7][ORM_ID] = orm_create("clans",MySQLCon);
    orm_insert(ormid,"OnClanInsert","d",playerid);
Код HTML:
forward OnClanInsert(playerid);
public OnClanInsert(playerid)
{
    printf("CALLED.");
    return 1;
}



Re: Callback. - BiosMarcel - 13.02.2016

nvm i am retarded ignore this post pls ^^


Re: Callback. - Vince - 13.02.2016

I can't insert because you have not linked any variables (orm_addvar_*). The ORM thing is not magic and it can't guess where or what it needs to insert.