Can somebody help me?
#4

Quote:
Originally Posted by Dokins
Посмотреть сообщение
You have to create a string like so:

pawn Код:
new string[128]; // String size is 128 as I dont know how big it will be.
format(string, sizeof(string), "Government: Dear Citizens of Los Santos Police officer %s is now ON duty.", GetName(playerid));

SendClientMessageToAll(COLOURHERE, string);
return 1;
All i got was these

Код:
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(873) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(875) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(876) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(878) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(881) : error 021: symbol already defined: "SendClientMessageToAll"
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(882) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(884) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(886) : error 054: unmatched closing brace ("}")
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(887) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(890) : error 010: invalid function or declaration
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(892) : error 054: unmatched closing brace ("}")
C:\Users\Parent\Desktop\Everything\Test Server\gamemodes\ESGDM.pwn(895) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply


Messages In This Thread
Can somebody help me? - by Blunt - 14.09.2011, 19:55
Re: Can somebody help me? - by Dokins - 14.09.2011, 20:00
Re: Can somebody help me? - by Kush - 14.09.2011, 20:05
Re: Can somebody help me? - by Blunt - 14.09.2011, 20:07
Re: Can somebody help me? - by Dokins - 14.09.2011, 20:08
Re: Can somebody help me? - by Blunt - 14.09.2011, 20:10
Re: Can somebody help me? - by Dokins - 14.09.2011, 20:24
Re: Can somebody help me? - by scottyishere - 14.09.2011, 20:30

Forum Jump:


Users browsing this thread: 4 Guest(s)