13.02.2013, 18:37
(
Последний раз редактировалось DaniceMcHarley; 01.06.2017 в 02:25.
)
------
[I]Well, I'm a scripting beginner and i tried to script some gangs but after I'm done everything there are 26 errors appear.I have no idea why It's appearing
The errors are. Код:
: error 017: undefined symbol "playerid" The line is. Код:
public OnGameModeExit() { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } Thanks!! |
public OnGameModeExit()
{
//codes here
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
//codes here
return 1;
}
public OnGameModeExit()
{
{
public OnPlayerStateChange(playerid, newstate, oldstate)
{
}
DaniceMcHarley
As people said, you cant use any public inside of another public, why would you need those? you could do something like this also try to read https://sampwiki.blast.hk/wiki/Scripting_Basics some of those pawn Код:
|
public OnGameModeExit()//This is a call back
{
public OnPlayerStateChange(playerid, newstate, oldstate) //This is a call back
//Putting them together = hell
{
public OnGameModeExit()
{
//bla bla
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
//code bla bla
return 1;
}