SA-MP Forums Archive
Problem with OnPlayerSelectObject - 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: Problem with OnPlayerSelectObject (/showthread.php?tid=474808)



Problem with OnPlayerSelectObject - LastChaos - 09.11.2013

After choosing an object it doesn't let me edit it and doesn't show the printf in console. Why?

PHP код:
public OnPlayerSelectObject(playeridtypeobjectidmodelidFloat:fXFloat:fYFloat:fZ)
{
    
printf("Player %d selected object %d"playeridobjectid);
    
EditObject(playeridobjectid);
    
SendClientMessage(playerid0xFFFFFFFF"You now are able to edit your object!");
    return 
1;

Streamer 2.6.1