SA-MP Forums Archive
quick help error 025 - 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: quick help error 025 (/showthread.php?tid=519964)



quick help error 025 - GrOobY - 16.06.2014

public OnPlayerCommandText(cmdtext[])
{
if (strcmp("/njestg", cmdtext, true, 10) == 0)
{
MoveObject(deranje, 2720.30322, -2499.71338, 12.50087, 0.00000, 0.00000, 89.41450, 3.50);
SetTimer("dera", 5000, false); // Set a timer of 1000 miliseconds (1 second)
return 1;
}
if (strcmp("/dystg", cmdtext, true, 0) == 0)
{
MoveObject(derady, 2720.11230, -2401.01196, 12.45378, 0.00000, 0.00000, 89.28040, 3.50);
SetTimer("deraa", 5000, false); // Set a timer of 1000 miliseconds (1 second)
return 1;
}
return 0;
}

error line public OnPlayerCommandText(cmdtext[])

"error 025: function heading differs from prototype"


Re: quick help error 025 - kamiliuxliuxliux - 16.06.2014

OnPlayerCommandText(playerid, cmdtext[]) should be.


Re: quick help error 025 - GrOobY - 16.06.2014

ohh i forgot to define it XD thanks you +rep


Re: quick help error 025 - GrOobY - 16.06.2014

Okay i need another help i maped a base everything compiled and its good also loaded but when i enter in server there is not the map ? :@ anyone help


Re: quick help error 025 - Eth - 16.06.2014

maybe you used the maximum createobject allowed?
which is 1000


Re: quick help error 025 - GrOobY - 17.06.2014

Ofcourse i dont i have just 10-20 object no more