Forum

> > CS2D > Scripts > Say Error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say Error

3 replies
To the start Previous 1 Next To the start

old Say Error

Jynxxx
User Off Offline

Quote
IMG:https://img15.imageshack.us/img15/5602/errorur.png


Spoiler >


Can someone help me fix this please.

old Re: Say Error

Cure Pikachu
User Off Offline

Quote
An extra end, it seems.
Of course, I'll just simplify the p.psay function to:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function p.psay(id,txt)
	if string.lower(txt) ~= "rank" then
		if status(p.owner,id) then
			msg("©000255255"..player(id,"name").." [OWNER]: "..txt)
			return 1
		elseif status(p.viceowner,id) then
			msg("©255000255"..player(id,"name").." [VICE-OWNER]: "..txt)
			return 1
		elseif status(p.admin,id) then
			msg("©000255000"..player(id,"name").." [ADMINISTRADOR]: "..txt)
			return 1
		elseif status(p.mod,id) then
			msg("©000000255"..player(id,"name").." [MODERATOR]: "..txt)
			return 1
		elseif status(p.vip,id) then
			msg("©255155000"..player(id,"name").." [VIP]: "..txt)
			return 1
		else
			return 0
		end
	else
		return 0
	end
end
edited 3×, last 20.11.12 11:40:21 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview