Jump to content
  • 0

Problema Teleport


ruben88

Question

Am o problema xD

C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(151) : error 017: undefined symbol "MAX_TELES"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7271) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7272) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7273) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7274) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7275) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7276) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7277) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7278) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7279) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7280) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7281) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7282) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7283) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7284) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7285) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7286) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7287) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7288) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7289) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7290) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7291) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7292) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7293) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7294) : error 017: undefined symbol "AddTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7295) : error 017: undefined symbol "AddTeleport"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

La  un teleport....

Nush ce sa-i fac....:(

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

stock AddTeleport(playerid, tname[], message[], Float:x, Float:y, Float:z, Float:a, interior, world)

{

new vehicleid = GetPlayerVehicleID(playerid);

new State = GetPlayerState(playerid);

if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)

{

ShowWelcome(playerid, message);

LinkVehicleToInterior(vehicleid, interior);

SetPlayerInterior(playerid, interior);

SetVehicleZAngle(vehicleid, a);

SetCameraBehindPlayer(playerid);

//RemovePlayerFromVehicle(playerid);

ShowTeleport(playerid, tname);

return SetVehiclePos(vehicleid, x, y, z);

}

SetCameraBehindPlayer(playerid);

SetPlayerPos(playerid, x, y, z);

SetPlayerInterior(playerid, interior);

ShowWelcome(playerid, message);

ShowTeleport(playerid, tname);

SetPlayerFacingAngle(playerid, a);

SetPlayerVirtualWorld(playerid, world);

return 1;

}

Doar la asta team putut ajuta

Link to comment
Share on other sites

C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7388) : warning 225: unreachable code
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8723) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8729) : error 017: undefined symbol "ShowTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8735) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8736) : error 017: undefined symbol "ShowTeleport"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Asta ami da acum..

Link to comment
Share on other sites

Ruben" post="58145" timestamp="1299093381"]

C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7388) : warning 225: unreachable code
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8723) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8729) : error 017: undefined symbol "ShowTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8735) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8736) : error 017: undefined symbol "ShowTeleport"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Asta ami da acum..

stock ShowTeleport(playerid, command[])

{

TextDrawHideForAll(tleport);

new string[128], name[128]; GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), " %s -->~r~ /%s", name, command);

TextDrawSetString(Text:tleport, string);

TextDrawShowForAll(tleport);

SetTimer("HideTD", 2000, 0);

return 1;

}

stock ShowWelcome(playerid, wilcome[])

{

TextDrawHideForPlayer(playerid, Wtel[playerid]);

new string[260];

if (limba[playerid]==1)

{

format(string, sizeof(string), "Bine ai venit la:~n~ %s", wilcome);

TextDrawSetString(Text:Wtel[playerid], string);

TextDrawShowForPlayer(playerid, Wtel[playerid]);

SetTimerEx("HM", 2000, 0, "i, i", playerid, _:Wtel[playerid]);

}else if (limba[playerid]==2)

{

format(string, sizeof(string), "Welcome to:~n~ %s", wilcome);

TextDrawSetString(Text:Wtel[playerid], string);

TextDrawShowForPlayer(playerid, Wtel[playerid]);

SetTimerEx("HM", 2000, 0, "i, i", playerid, _:Wtel[playerid]);

}

return 1;

}

Link to comment
Share on other sites

Ruben" post="58145" timestamp="1299093381"]

C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(7388) : warning 225: unreachable code
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8723) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8729) : error 017: undefined symbol "ShowTeleport"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8735) : error 017: undefined symbol "ShowWelcome"
C:\Documents and Settings\PC\Desktop\Serverul STR!\gamemodes\STR.pwn(8736) : error 017: undefined symbol "ShowTeleport"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Asta ami da acum..

Din cate stiu si daca nu ma insel, trebuie definite acele functii... ShowTeleport.... ShowWelcome s.a.m.d

 

Link to comment
Share on other sites

stock ShowTeleport(playerid, command[])

{

TextDrawHideForAll(tleport);

new string[128], name[128]; GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), " %s -->~r~ /%s", name, command);

TextDrawSetString(Text:tleport, string);

TextDrawShowForAll(tleport);

SetTimer("HideTD", 2000, 0);

return 1;

}

stock ShowWelcome(playerid, wilcome[])

{

TextDrawHideForPlayer(playerid, Wtel[playerid]);

new string[260];

if (limba[playerid]==1)

{

format(string, sizeof(string), "Bine ai venit la:~n~ %s", wilcome);

TextDrawSetString(Text:Wtel[playerid], string);

TextDrawShowForPlayer(playerid, Wtel[playerid]);

SetTimerEx("HM", 2000, 0, "i, i", playerid, _:Wtel[playerid]);

}else if (limba[playerid]==2)

{

format(string, sizeof(string), "Welcome to:~n~ %s", wilcome);

TextDrawSetString(Text:Wtel[playerid], string);

TextDrawShowForPlayer(playerid, Wtel[playerid]);

SetTimerEx("HM", 2000, 0, "i, i", playerid, _:Wtel[playerid]);

}

return 1;

}

Nu miai dat nik..tot asa am spune asta...

Link to comment
Share on other sites

Ruben" post="58195" timestamp="1299154105"]

error 017: undefined symbol "tname"
warning 203: symbol is never used: "tname"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.

Asta ami da acum..
=- link=topic=9714.msg58193#msg58193 date=1299153886]
#pragma unused tname

Sterge, si zi-mi unde ai pus acel cod 'tname'.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Ruben" post="58236" timestamp="1299168534"]

Pe la sfarsit...unde mai erau din astea cu stock..

Ok. Sterge-l de acolo si pune-l sus (cred ca tot dracu ala e dar in fine, incercarea moarte n-are). Daca nici asa nu are efect, cauta sa vezi unde folosest tname (in ce callback/comanda/etc).

  • Daca e intr-un callback (cel cu public in fata) pune codul ala dupa prima { din acel callback.

Exemplu:


public OnPlayerConnect(playerid)
{
    //codul aici
    return 1;
}
  • Daca e intr-o comanda, pune la fel ca la callback, dupa prima {
Exemplu:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //codul aici
    //celelalte coduri + comenzi
    return 0;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.