[HELP] ERROR's
#1

Hello
I have a problem...
With my gamemode...

Код:
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : warning 217: loose indentation
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : error 029: invalid expression, assumed zero
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(649) : error 004: function "OnPlayerRequestClass" is not implemented
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(651) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(652) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(653) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(654) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(655) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(656) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : warning 225: unreachable code
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : error 029: invalid expression, assumed zero
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(660) : error 004: function "OnPlayerConnect" is not implemented
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(662) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(664) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(666) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(669) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(670) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(671) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(672) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(673) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(675) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(678) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(681) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(683) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(684) : error 017: undefined symbol "playerid"
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : warning 225: unreachable code
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : error 029: invalid expression, assumed zero
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(689) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Dominykas\Desktop\Freeroam\gamemodes\ltfreeroam.pwn(691) : error 017: undefined symbol "playerid"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
pawn Код:
Public OnPlayerRequestClass (playerid, classid)
{
    SetPlayerFacingAngle (playerid, 250.7573);
    SetPlayerPos (playerid, -2450.8013, -305.1058,56.9433);
    SetPlayerCameraPos (playerid, -2439.3076, -307.7223,57.9584);
    SetPlayerCameraLookAt (playerid, -2450.8013, -305.1058,56.9433);
    PlayerPlaySound (playerid, 1138, 257.6206, -41.5307, 1002.0234) / / Sound
    ApplyAnimation (playerid, "Dancing," "DAN_Left_A" 4.0,1,0,0,0, -1) / / Dance
    return 1;
}
Connect Player On //============================== =============== ================
Public OnPlayerConnect (playerid)
{
    printf ("OnPlayerConnect (% d)", playerid);
    new String [256];
    GameTextForPlayer (playerid, "~ r ~ LV Free-Roam ~ n ~ ~ w ~ ', 10000.1);
    new name [24];
    GetPlayerName (playerid, name, 24);
    format (string, sizeof (string) "
***% will join us!. "cottage);
    SendClientMessageToAll (COLOR_WHITE, string);
    SendClientMessage (playerid, COLOR_GOLD, "
Welcome");
    SendClientMessage (playerid, 0x7CFC00FF, Register! / Register [password] "
);
    SendClientMessage (playerid, 0x7CFC00FF, "All of our servers can be found here http://sampfreeroom.heavenforum.com");
    SendClientMessage (playerid, 0x7CFC00FF, "Do not forget isimesti our server to your favorites!");
    SendClientMessage (playerid, 0x7CFC00FF, "Help - / help");
    format (string, sizeof (string), please sign up to play. "cottage);
    ShowPlayerDialog (playerid, 1, DIALOG_STYLE_INPUT, "
Registration," string "Register", "Reject");
    {
    format (string, sizeof (string) Please log in to play. "
cottage);
    ShowPlayerDialog (playerid, 2, DIALOG_STYLE_INPUT, "Connection" string "Log", "Cancel");
    }
    new file [128], name [128];
    GetPlayerName (playerid, name, 128);
    format (file, 128, "user /% s.ini", name);
    if (! dini_Exists (file)) ShowPlayerDialog (playerid, 9876, DIALOG_STYLE_INPUT "Enter" "Enter password:", "OK", "Exit");
    else ShowPlayerDialog (playerid, 9877, DIALOG_STYLE_INPUT, "Connection", "Enter password:", "OK", "Exit");
    return 1;
}
//================================================ ==============================
He //============================= Player Spawn ================ ==================
Public OnPlayerSpawn (playerid)
{
    SendClientMessage (playerid, COLOR_GOLD, Info & Help - / help ");
{
{

CAN ANY 1 HELP ME
Reply
#2

1. Please use the [ code ] [ /code ] tags to organize your errors
2. Please make a topic with an appropriate name for your thread next time.
3. Please show us the lines in the script where the errors occur.
Reply
#3

Okay, i did it. Now need help, please.
Reply
#4

plz make this english:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerFacingAngle(playerid,250.7573);
    SetPlayerPos(playerid,-2450.8013,-305.1058,56.9433);
    SetPlayerCameraPos(playerid,-2439.3076,-307.7223,57.9584);
    SetPlayerCameraLookAt(playerid,-2450.8013,-305.1058,56.9433);
    PlayerPlaySound(playerid, 1138, 257.6206, -41.5307, 1002.0234);// Garsas
    ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.0,1,0,0,0,-1);// Sokis
    return 1;
}
//==============================On Player Connect===============================
public OnPlayerConnect(playerid)
{
    printf("OnPlayerConnect(%d)", playerid);
    new string[256];
    GameTextForPlayer(playerid, " ~r~LT Free-Roam ~n~ ~w~",10000,1);
    new name[ 24 ];
    GetPlayerName( playerid, name, 24 );
    format( string, sizeof( string ), "***%s prisijunge prie musu!.", name );
    SendClientMessageToAll(COLOR_WHITE, string );
    SendClientMessage(playerid, COLOR_GOLD, "Sveikas atvykes");
    SendClientMessage(playerid, 0x7CFC00FF, "Usiregistruok! /register [slaptazodis]");
    SendClientMessage(playerid, 0x7CFC00FF, "Viska apie musu serveri galite suzinoti cia http://sampfreeroom.heavenforum.com");
    SendClientMessage(playerid, 0x7CFC00FF, "Nepamirsk isimesti musu serverio i Favorites!!! ");
    SendClientMessage(playerid, 0x7CFC00FF, "Pagalba - /pagalba");
    format( string ,sizeof( string ),"Prasome uzsiregistruoti, kad galetumete zaisti.",name);
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracija",string,"Registruotis","Atmesti");
    {
    format( string ,sizeof( string ),"Prasome prisijungti, kad galetumete zaisti.",name);
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimas",string,"Prisijungti","Atsmesti");
    }
    new file[128], vardas[128];
    GetPlayerName(playerid, vardas, 128);
    format(file,128,"Users/%s.ini",vardas);
    if(!dini_Exists(file)) ShowPlayerDialog(playerid,9876,DIALOG_STYLE_INPUT,"Registracija","Įveskite slaptaћodį:","Gerai","Iљeiti");
    else ShowPlayerDialog(playerid,9877,DIALOG_STYLE_INPUT,"Prisijungimas","Įveskite slaptaћodį:","Gerai","Iљeiti");
    return 1;
}
//==============================================================================
//=============================On Player Spawn==================================
public OnPlayerSpawn(playerid)
{
    SendClientMessage(playerid, COLOR_GOLD, "Info & Pagalba - /pagalba");
{
Reply
#5

Its english?
Reply
#6

Quote:
Originally Posted by Kanape9
Посмотреть сообщение
Its english?
what in the gods name is Įveskite slaptaћodį and the other stuff?

make this english not Lithuanian
Reply
#7

Please put them inside the [ pawn ] [ /pawn ] tags - [ pawnscript ] tags are not valid.

Also comment the lines that are giving the warnings, so I have an easier time locating them.

This forum requires that you wait 120 seconds between posts. Please try again in 34 seconds.
Reply
#8

You missed a bracket ({, }) somewhere.. check your script again.
Reply
#9

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Please put them inside the [ pawn ] [ /pawn ] tags - [ pawnscript ] tags are not valid.

Also comment the lines that are giving the warnings, so I have an easier time locating them.

This forum requires that you wait 120 seconds between posts. Please try again in 34 seconds.
ye the waiting is boring and yes do [ pawn ] [ /pawn ] like i did on:

Quote:
Originally Posted by jonnyboy
Посмотреть сообщение
plz make this english:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerFacingAngle(playerid,250.7573);
    SetPlayerPos(playerid,-2450.8013,-305.1058,56.9433);
    SetPlayerCameraPos(playerid,-2439.3076,-307.7223,57.9584);
    SetPlayerCameraLookAt(playerid,-2450.8013,-305.1058,56.9433);
    PlayerPlaySound(playerid, 1138, 257.6206, -41.5307, 1002.0234);// Garsas
    ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.0,1,0,0,0,-1);// Sokis
    return 1;
}
//==============================On Player Connect===============================
public OnPlayerConnect(playerid)
{
    printf("OnPlayerConnect(%d)", playerid);
    new string[256];
    GameTextForPlayer(playerid, " ~r~LT Free-Roam ~n~ ~w~",10000,1);
    new name[ 24 ];
    GetPlayerName( playerid, name, 24 );
    format( string, sizeof( string ), "***%s prisijunge prie musu!.", name );
    SendClientMessageToAll(COLOR_WHITE, string );
    SendClientMessage(playerid, COLOR_GOLD, "Sveikas atvykes");
    SendClientMessage(playerid, 0x7CFC00FF, "Usiregistruok! /register [slaptazodis]");
    SendClientMessage(playerid, 0x7CFC00FF, "Viska apie musu serveri galite suzinoti cia http://sampfreeroom.heavenforum.com");
    SendClientMessage(playerid, 0x7CFC00FF, "Nepamirsk isimesti musu serverio i Favorites!!! ");
    SendClientMessage(playerid, 0x7CFC00FF, "Pagalba - /pagalba");
    format( string ,sizeof( string ),"Prasome uzsiregistruoti, kad galetumete zaisti.",name);
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Registracija",string,"Registruotis","Atmesti");
    {
    format( string ,sizeof( string ),"Prasome prisijungti, kad galetumete zaisti.",name);
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimas",string,"Prisijungti","Atsmesti");
    }
    new file[128], vardas[128];
    GetPlayerName(playerid, vardas, 128);
    format(file,128,"Users/%s.ini",vardas);
    if(!dini_Exists(file)) ShowPlayerDialog(playerid,9876,DIALOG_STYLE_INPUT,"Registracija","Įveskite slaptaћodį:","Gerai","Iљeiti");
    else ShowPlayerDialog(playerid,9877,DIALOG_STYLE_INPUT,"Prisijungimas","Įveskite slaptaћodį:","Gerai","Iљeiti");
    return 1;
}
//==============================================================================
//=============================On Player Spawn==================================
public OnPlayerSpawn(playerid)
{
    SendClientMessage(playerid, COLOR_GOLD, "Info & Pagalba - /pagalba");
{
Reply
#10

To what I see, you are missing a few semi-colons ( ; ) at the end of a few lines. You are also spelling "Public" to declare your callbacks when it should be all lower-case, "public". And the comments are off slightly, allowing words outside of the comments.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)