i messed up?!
#1

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:
Код:
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
^ Warnings.


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;
}
and it goes up to 20 rules, so please help me.
Reply
#2

Remove this line.

pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Reply
#3

change 10403 and 10404 to
pawn Код:
new pName[MAX_PLAYER_NAME];
format(str,sizeof str,"0,5%s Is Reading the server rules!",pName);
SendClientMessageToAll(0x0,str);
the compile..if u get more post them ill help
//0x0 is black color define

EDITED again xD compile now
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Remove this line.

pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Worked.

No need Weaponz, i fixed it, but thanks for you help
Reply
#5

oh now i see that irc thing xD
Reply
#6

Lol xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)