Error +rep if helped
#1

I get :

Quote:

C:\Users\Callum Riley\Desktop\Server\gamemodes\debt.pwn(16041) : error 029: invalid expression, assumed zero
C:\Users\Callum Riley\Desktop\Server\gamemodes\debt.pwn(16041) : error 017: undefined symbol "ELS"
C:\Users\Callum Riley\Desktop\Server\gamemodes\debt.pwn(16042) : error 029: invalid expression, assumed zero
C:\Users\Callum Riley\Desktop\Server\gamemodes\debt.pwn(16042) : error 017: undefined symbol "ELS"

for:

Код:
	forward ELS(playerid);
	public ELS(playerid)
	{
		PlayerTextDrawHide(playerid, Background);
		PlayerTextDrawHide(playerid, Loading);
		PlayerTextDrawHide(playerid, California);
		PlayerTextDrawHide(playerid, Roleplay);
		for(new i = 0; i < 20; i++)
	    {
  			SendClientMessage(playerid, COLOR_WHITE, " ");
     	}
	}
Reply
#2

What are the lines which show errors?
Reply
#3

make sure that IS NOT under any callback
Reply
#4

try using
Код:
new ELS; // on top of your sctipt
Quote:

new ELS;
forward ELS(playerid);
public ELS(playerid)
{
PlayerTextDrawHide(playerid, Background);
PlayerTextDrawHide(playerid, Loading);
PlayerTextDrawHide(playerid, California);
PlayerTextDrawHide(playerid, Roleplay);
for(new i = 0; i < 20; i++)
{
SendClientMessage(playerid, COLOR_WHITE, " ");
return 1; //Maybe adding a return 1; ?
}

Reply
#5

Quote:
Originally Posted by CraTzy
Посмотреть сообщение
try using
Код:
new ELS; // on top of your sctipt
I've tried that

The lines are :

Код:
	forward ELS(playerid);
	public ELS(playerid)
Reply
#6

try to Replace
Quote:

public ELS(playerid)

With
Quote:

ELS(playerid)

and
Quote:

forward ELS(playerid);
with
ELS(playerid);

or put
Код HTML:
ELS(playerid); //Where you wanna call it such when spawn / after login /command 
Reply
#7

Do not put your script after any public! Put it at the bottom of the script, otherwise you will get these errors.
Reply
#8

Quote:
Originally Posted by CraTzy
Посмотреть сообщение
try to Replace

With

and

or put
Код HTML:
ELS(playerid); //Where you wanna call it such when spawn / after login /command 
I now get 'Undefined Symbol: ELS'
Reply
#9

Show us 10lines up, and 10lines down.
Reply
#10

Quote:
Originally Posted by MrCallum
Посмотреть сообщение
I now get 'Undefined Symbol: ELS'
okay so remove the playerid do just
ELS()
{

//Codes
}

//this one put it where is used such connect/spawn/after login/Clsss/command
it need work try
for me works like this
ELS();

or add new ELS;
on top
figure it out lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)