quick help error 025
#1

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"
Reply
#2

OnPlayerCommandText(playerid, cmdtext[]) should be.
Reply
#3

ohh i forgot to define it XD thanks you +rep
Reply
#4

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
Reply
#5

maybe you used the maximum createobject allowed?
which is 1000
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)