30.12.2010, 11:00
this is my rules command, i send it to the irc, so i know if someone use it. it would be soo great if i got it fixed.
Warnings:
^ Warnings.
Now The Code.
and it goes up to 20 rules, so please help me.
Warnings:
Код:
C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10403) : warning 219: local variable "PlayerName" shadows a variable at a preceding level C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10404) : error 012: invalid function call, not a valid address C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10404) : warning 215: expression has no effect C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10404) : error 001: expected token: ";", but found ")" C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10404) : error 029: invalid expression, assumed zero C:\Users\me\Desktop\Script\gamemodes\CR.pwn(10404) : fatal error 107: too many error messages on one line
Now The Code.
Код:
dcmd_rules(playerid,params[]) { new str[100]; new PlayerName[MAX_PLAYER_NAME]; format(str,sizeof str,"0,5%s Is Reading the server rules!",PlayerName(playerid)); IRC_GroupSay(gGroupID, channel, str); SendClientMessage(playerid,blue,"1 - Dont Deathmatch."); SendClientMessage(playerid,blue,"2 - Dont Revenge Kill"); SendClientMessage(playerid,blue,"3 - Dont Hack/Cheat"); SendClientMessage(playerid,blue,"4 - Dont Abuse Bugs"); SendClientMessage(playerid,blue,"5 - Dont Insult/Flame"); return true; }