How do I fix this?
#1

Ok,
This line:

Quote:

return 0;

Gives me

Quote:

error 010: invalid function or declaration

I can't see why It does that?
This Is the code I added recently:

Quote:

if(strcmp("/ban",cmdtext,true,4)==0)
if(PlayerInfo[playerid][pL1A] == 1) {
new id = strval(cmdtext[5]);
Ban(id);
printf("SERVER BAN: %d has been banned from the server",id);
SendClientMessageToAll(COLOR_WHITE, "----------------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_GREEN, "SERVER ADMINISTRATION NOTICE");
SendClientMessageToAll(COLOR_WHITE, "%d have been banned from the server!");
SendClientMessageToAll(COLOR_WHITE, "----------------------------------------------------------------------------------------------------------");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown Command.");
}
return 1;
}
return 0;
}

Reply


Messages In This Thread
How do I fix this? - by Mike Garber - 23.06.2009, 14:04
Re: How do I fix this? - by Grim_ - 23.06.2009, 14:10
Re: How do I fix this? - by Mike Garber - 23.06.2009, 14:25
Re: How do I fix this? - by Grim_ - 23.06.2009, 14:28
Re: How do I fix this? - by Mike Garber - 23.06.2009, 14:31
Re: How do I fix this? - by Grim_ - 23.06.2009, 14:32

Forum Jump:


Users browsing this thread: 3 Guest(s)