04.03.2012, 14:07
hey guys i was making some commands for my server i tried to compile it and i get this.
and this is what im trying to do.
Does anyone have any ideas?
Код:
C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(3789) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(3791) : error 021: symbol already defined: "SendClientMessage" C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(3796) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(3798) : error 021: symbol already defined: "SendClientMessage" C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(3804) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/rules", cmdtext, true, 10) == 0) SendClientMessage(playerid, COLOR_GREEN, "=================The Laws of The Land=================="); SendClientMessage(playerid, COLOR_WHITE, "1.No Death Matching"); SendClientMessage(playerid, COLOR_WHITE, "2.Car Jacking is not allowed"); SendClientMessage(playerid, COLOR_WHITE, "3.Do not disrespect other players."); SendClientMessage(playerid, COLOR_WHITE, "4.Do not spam or else you'll be muted/kicked!"); SendClientMessage(playerid, COLOR_WHITE, "5.Hacks are not allowed here, except handling lines, BUT DRIFT ONLY!"); SendClientMessage(playerid, COLOR_WHITE, "6.Respect the other players, and admins too."); SendClientMessage(playerid, COLOR_WHITE, "7.Please follow all the rules and have fun! :)"); SendClientMessage(playerid, COLOR_GREEN, "=================The Laws of The Land=================="); } if(strcmp("/help", cmdtext, true, 10) == 0) SendClientMessage(playerid, COLOR_GREEN, "====================Drift World=================="); SendClientMessage(playerid, COLOR_WHITE, "/teles /report /rules"); SendClientMessage(playerid, COLOR_WHITE, "Yeah thats basically it."); SendClientMessage(playerid, COLOR_GREEN, "====================Drift World=================="); } if(strcmp("/teles", cmdtext, true, 10) == 0) SendClientMessage(playerid, COLOR_GREEN, "==============Drift World Telelports============="); SendClientMessage(playerid, COLOR_WHITE, "/spawn /drift /drift2 /drift3 /drift4 /drift5 /drift6"); SendClientMessage(playerid, COLOR_WHITE, "/drift7 /drift8 /drift9 /tune /tune2 /SFAdrift "); SendClientMessage(playerid, COLOR_WHITE, "/drifttrack1 /driftcanyon "); SendClientMessage(playerid, COLOR_GREEN, "==============Drift World Telelports================="); return 1; }