Forum

> > CS2D > Scripts > Scripter in need .
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripter in need .

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Scripter in need .

Kirito2K
User Off Offline

Zitieren
Hi all,
I was making my script and i had some errors and i'm lazy for checking it , so i said maybe some one will help me .

The Code >


The errors :
1- Put yourself an admin and try to use the color menu , there is a bug , it don't work , it's Yates shit color menu .

2- Put yourself an admin and open menu and press Specail Spawn , it don't work ..

PS :
1- When i try to open the color menu there isn't a error comes in the console but it don't work.
2- When i try to use specail spawn , it gives an error (LUA ERROR: sys/lua/server/F2.lua:582: bad argument #1 to 'ipairs' (table expected, got nil))
3- This script is happy town script and it need a very big map .

alt Re: Scripter in need .

Ajmin
User Off Offline

Zitieren
I can help u with lua.

Edit:
Code [shit colour menu fixed >



for fixing the special spawn refer the "id" and also the placement of "end"

startround doesnt have any value for "id" !!!
6× editiert, zuletzt 05.12.14 22:49:17

alt Re: Scripter in need .

Zeik
User Off Offline

Zitieren
lol dude, if you think someone else's code's shit then don't use it and make your own.

alt Re: Scripter in need .

Joni And Friends
User Off Offline

Zitieren
You adding the same functions with different name
user Kirito2K hat geschrieben
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function existk(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end

function existb(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end

function existslap(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end

alt Re: Scripter in need .

Raaj Nadar
User Off Offline

Zitieren
@user Joni And Friends:
user Joni And Friends hat geschrieben
You adding the same functions with different name
user Kirito2K hat geschrieben
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function existk(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end

function existb(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end

function existslap(param)
if player(param,"exists") then
return player(param,"name")
else
return ""
end
end


That is because
1) existk -- for Exist Player for kicking.
1) existb -- for Exist Player for baning.
1) existslap -- for Exist Player for slapping.

check before posting.

@user Kirito2K: i can't help you sorry i can't figure the mistake.
(param) try chaning this to (id) for kick ban and slap (param) i never used.

@user Zeik: The name of the File itself is yates shit color menu.
no one can do anything for that.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht