Abend
ich hab ein kleines problem bei meinem Tutorial, also ich habe ein Tutorial das wenn man sich Registrieren tuht direkt das Tutorial danach erscheinen tuht.. aber irgend kriege ich Errors:
Hier die Publics:
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid,"Tutorial") == 0)
{
SendClientMessage(playerid,GELB,"========|Willkommen Auf Life of City, Es wird nun ein kleines Tutorial Folgen, Viel Spaß !|========");
SendClientMessage(playerid,-1,"=====| Stadthalle |=====");
SendClientMessage(playerid,-1,"In der Stadthalle kannst du dir einen Neben Job & Personalausweis Besorgen.");
SendClientMessage(playerid,-1,"Ein Job ist wichtig um Finanziel nicht abzusinken.");
SendClientMessage(playerid,GELB,"============================================");
InterpolateCameraPos(playerid, 1468.412231, -1758.751831, 33.768356, 1468.412231, -1758.751831, 33.768356, 10000);
InterpolateCameraLookAt(playerid, 1464.467041, -1761.468872, 32.335601, 1464.467041, -1761.468872, 32.335601, 10000);
SetTimerEx("Tutorial1",10000,false,"i",playerid);
}
else if(GetPVarInt(playerid,"Tutorial") == 1)
{
SetPlayerSkin(playerid, GetPVarInt(playerid,"Skin"));
GivePlayerMoney(playerid, GetPVarInt(playerid,"Geld"));
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{SetPlayerPos(playerid,noobispawn);SetPlayerSkin(playerid,26);}
case 1:{SetPlayerPos(playerid,lspdspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,10);SetPlayerColor(playerid,GRAU);}
case 2:{SetPlayerPos(playerid,fbispawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,6);SetPlayerColor(playerid,GRAU);}
case 3:{SetPlayerPos(playerid,armyspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,0);SetPlayerColor(playerid,GRAU);}
case 4:{SetPlayerPos(playerid,sesespawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,5);SetPlayerColor(playerid,GRAU);}
case 5:{SetPlayerPos(playerid,saedspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,5);SetPlayerColor(playerid,GRAU);}
case 6:{SetPlayerPos(playerid,newsspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,0);SetPlayerColor(playerid,GRAU);}
case 7:{SetPlayerPos(playerid,mafiaspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,3);SetPlayerColor(playerid,GRAU);}
case 8:{SetPlayerPos(playerid,terrorspawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,4);SetPlayerColor(playerid,GRAU);}
case 9:{SetPlayerPos(playerid,grovespawn);SetPlayerArmour(playerid,100);SetPlayerInterior(playerid,3);SetPlayerColor(playerid,GRAU);}
}
}
return 1;
}
public Tutorial1(playerid)
{
InterpolateCameraPos(playerid, 1468.412231, -1758.751831, 33.768356, 1510.808471, -1587.225585, 49.228733, 8000);
InterpolateCameraLookAt(playerid, 1464.523681, -1761.463623, 32.179218, 1513.432739, -1591.184082, 47.665546, 3000);
SendClientMessage(playerid,GELB,"======== LSPD ========");
SendClientMessage(playerid,-1,"Hier ist das Polizei Hauptquatier.");
SendClientMessage(playerid,-1,"Hier befindet sich das Gefängnis.");
SendClientMessage(playerid,-1,"Bei Verstoß gegen die Regelen kommst du da rein.");
SetTimerEx("Tutorial2",10000,false,"i",playerid);
return 1;
}
public Tutorial2(playerid)
{
InterpolateCameraPos(playerid, 1167.711303, -949.206604, 65.554206, 1167.711303, -949.206604, 65.554206, 19);
InterpolateCameraLookAt(playerid, 1170.734008, -946.275024, 62.858020, 1170.734008, -946.275024, 62.858020, 10);
SendClientMessage(playerid,GELB,"Hier befindet sich das BSN");
SetTimerEx("Tutorial3",10000,false,"i",playerid);
return 1;
}
public Tutorial3(playerid)
{
InterpolateCameraPos(playerid, 1167.711303, -949.206604, 65.554206, 1445.026977, -904.774841, 75.426826, 8000);
InterpolateCameraLookAt(playerid, 1170.734008, -946.275024, 62.858020, 1444.826293, -899.942260, 76.694099, 8000);
SendClientMessage(playerid,GELB,"Viel Spaß auf LoC");
SetTimerEx("Tutorial4",5000,false,"i",playerid);
return 1;
}
public Tutorial4(playerid)
{
SpawnPlayer(playerid);
SetPVarInt(playerid,"Tutorial",1);
return 1;
}
Der Error Code:
C:\Users\Equ\Desktop\LoC.pwn(3698) : error 017: undefined symbol "InterpolateCameraPos"
C:\Users\Equ\Desktop\LoC.pwn(3699) : error 017: undefined symbol "InterpolateCameraLookAt"
C:\Users\Equ\Desktop\LoC.pwn(3725) : error 017: undefined symbol "InterpolateCameraPos"
C:\Users\Equ\Desktop\LoC.pwn(3726) : error 017: undefined symbol "InterpolateCameraLookAt"
C:\Users\Equ\Desktop\LoC.pwn(3737) : error 017: undefined symbol "InterpolateCameraPos"
C:\Users\Equ\Desktop\LoC.pwn(3738) : error 017: undefined symbol "InterpolateCameraLookAt"
C:\Users\Equ\Desktop\LoC.pwn(3746) : error 017: undefined symbol "InterpolateCameraPos"
C:\Users\Equ\Desktop\LoC.pwn(3747) : error 017: undefined symbol "InterpolateCameraLookAt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.