something is wrong ?
#8

Quote:
Originally Posted by AYOUYOU
Посмотреть сообщение
Код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : warning 215: expression has no effect
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : warning 215: expression has no effect
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier (3)\gamemodes\xD.pwn(3059) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
format(string, sizeof(string), " Reason: %s\nYour Name: %s\nAdmin Name: %s", reason, , Playername, Adminname);
            SendClientMessage(playerid, RED, string);
What Wrong
You can't use "\n" in SendClientMessage.
Edit:
pawn Код:
new str_reason[60],str_name[35],str_aname[35];
format(str_reason,sizeof(str_reason),"Reason: %s.",reason);
format(str_name,sizeof(str_name),"Your Name: %s.",Playername);
format(str_aname,sizeof(str_aname),"Admin Name: %s.",Adminname);
SendClientMessage(playerid,RED,str_reason);
SendClientMessage(playerid,RED,str_name);
SendClientMessage(playerid,RED,str_aname);
This is the classic way of doing it.
Reply


Messages In This Thread
something is wrong ? - by AYOUYOU - 28.11.2014, 19:50
Re : something is wrong ? - by MCZOFT - 28.11.2014, 19:54
Re: something is wrong ? - by silenthill - 28.11.2014, 20:02
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:03
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:05
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 20:22
Re: something is wrong ? - by mamorunl - 28.11.2014, 20:27
Re: Re : something is wrong ? - by DaniceMcHarley - 28.11.2014, 20:47
Re : something is wrong ? - by AYOUYOU - 28.11.2014, 21:05
Re: something is wrong ? - by xStunt - 28.11.2014, 21:42

Forum Jump:


Users browsing this thread: 3 Guest(s)