Every Day Newbie's Questions:
#1

Ok Well Helo Guys My Name is vassilis or Blacklisted_Bboy ingame and i post a thread to solve the most usual questions on sa-mp forums about scripting,Lets Start:
1. I Will Start With an example:
Many People are getting fatal errors which you can fix in seconds
1.First fatal error:
pawn Code:
Can not read from file: "file here"
When you see this then it means that you have forgotten to add the include to the includes folder which is inside the pawno folder
So if the error is:
pawn Code:
Can not read from file: "streamer"
Then that means that you have to add the streamer include to pawno/includes folder and then recompile the script
***:In this case streamer include needs and the streamer plugin to server.cfg to works too
so it is like this on server.cfg
pawn Code:
echo Executing Server Config...
lanmode 1
rcon_password changeme
maxplayers 20
port 7777
hostname Example
gamemode0 gamemode here
filterscripts filterscripts here
plugins streamer                  <<<<<-----
announce 0
query 1
weburl [url]www.nbtdm.tk[/url]
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 20
logtimeformat [%H:%M:%S]
That was an example of the error of streamer include.
WARNING:If you dont have the streamer include download it from sa-mp forums.
So if you see this fatal error to your pawno:
pawn Code:
Can not read from file: "here is the include(like streamer)"
You have to put the include to the includes folder.
2ndly:
pawn Code:
File Or Fuction Is Not Found
Some times you see this when you are running the sa-mp.exe to open your server.
This means that you have to add an include or a plugin or the scriptfiles to the includes or plugins or scriptfiles folder of your sa-mp server folder.
**This happens usually when the gamemode is scripted on a downgraded version of pawno
Example:if you have pawno 0.3c and the gamemode/include/filterscript is scripted to 0.3b and when you run it,it says:
pawn Code:
File Or Fuction is not found
then you have to add an include or a plugin or some scriptfiles.
WARNING: This Happens when the gamemode have some fuctions which they are adding some things to a scriptfile of the gamemode.If you see into the script something like this then put the named folder that it needs to the scriptfiles of your sa-mp server folder.
3rdly FATAL Error:
pawn Code:
Example Fuction Is not implemented!!
Sometimes when you compile your script you see more than 10 errors and you see the same error more than 5 times
Example:
pawn Code:
SendPlayerFormattedText is not implemented
SendPlayerFormattedText is not implemented
SendPlayerFormattedText is not implemented
SendPlayerFormattedText is not implemented
If you see like the example this errors, then this means that you are missing a bracket from a fuction or you have put to the end of the fuction
")" instead of "}"
or you have put more brackets to open other fuctions example:
pawn Code:
if (strcmp(cmd, "/tele", true) == 0)
    {
    SetPlayerPos(playerid, x,y,z);
    SendClientMessage(playerid, COLOR_HERE, "Write Something Here");
    return 1;
    }
}
WARNING:THIS IS WRONG,You have to remove the last bracket"}" from the fuction
so the right fuction will be
pawn Code:
if (strcmp(cmd, "/tele", true) == 0)
    {
    SetPlayerPos(playerid, x,y,z);
    SendClientMessage(playerid, COLOR_HERE, "Write Something Here");
    return 1;
    }
WARNING:THIS IS THE RIGHT,the last bracket is removed from the fuction.
So if you see the same error more than 5 times which it will say"its not implemented"
then you have to see carefully how many brackets are to every fuction..
If you see VERY CAREFULLY that it stills says"its not implemented"then you have to be sure that you implemented the fuction which the pawno needs.
That to my opinion was the most asked questions i see to sa-mp forums if you want me to add something
Write Here
******IT WAS MY FIRST THREAD HERE to help others so dont be mad at me D: :P.
Regards,
Blacklisted_Bboy.
Reply
#2

Guys Did i help you?or its just a bumb ;p
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)