Error +rep if helped - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error +rep if helped (
/showthread.php?tid=607557)
Error +rep if helped -
MrCallum - 21.05.2016
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, " ");
}
}
Re: Error +rep if helped -
Dayrion - 21.05.2016
What are the lines which show errors?
Re: Error +rep if helped -
xTURBOx - 21.05.2016
make sure that IS NOT under any callback
Re: Error +rep if helped -
CraTzy - 21.05.2016
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; ?
}
|
Re: Error +rep if helped -
MrCallum - 21.05.2016
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)
Re: Error +rep if helped -
CraTzy - 21.05.2016
try to Replace
With
and
Quote:
forward ELS(playerid);
with
ELS(playerid);
|
or put
Код HTML:
ELS(playerid); //Where you wanna call it such when spawn / after login /command
Re: Error +rep if helped -
luke49 - 21.05.2016
Do not put your script after any public! Put it at the bottom of the script, otherwise you will get these errors.
Re: Error +rep if helped -
MrCallum - 21.05.2016
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'
Re: Error +rep if helped -
Luicy. - 21.05.2016
Show us 10lines up, and 10lines down.
Re: Error +rep if helped -
CraTzy - 21.05.2016
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