Skip to content

Commit 8d7ecce

Browse files
committed
fixed callback bug
1 parent 803d4da commit 8d7ecce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bindings/callbacks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL OnVehicleDeath(int vehicleid, int killerid) {
6565

6666
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerText(int playerid, const char * text) {
6767
char* txt = fromConst(text);
68-
bool ret = PySAMP::callback("OnPlayerCommandText", Py_BuildValue("(is)", playerid, txt));
68+
bool ret = PySAMP::callback("OnPlayerText", Py_BuildValue("(is)", playerid, txt));
6969
delete[] txt;
7070
return ret;
7171
}

0 commit comments

Comments
 (0)