Hi,
ich bin grad dabei meine eigenden fraktionen in meinen script zu bauen
bleibe hier stecken
Code
D:\DOKUME~1\ONESTA~1\Desktop\RLSERV~1\GAMEMO~1\RLbyCore.pwn(769) : error 017: undefined symbol "SetPlayerToTeamColor"
D:\DOKUME~1\ONESTA~1\Desktop\RLSERV~1\GAMEMO~1\RLbyCore.pwn(778) : error 017: undefined symbol "SetPlayerToTeamColor"
D:\DOKUME~1\ONESTA~1\Desktop\RLSERV~1\GAMEMO~1\RLbyCore.pwn(779) : warning 202: number of arguments does not match definition
D:\DOKUME~1\ONESTA~1\Desktop\RLSERV~1\GAMEMO~1\RLbyCore.pwn(785) : error 030: compound statement not closed at the end of file (started at line 749)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Code
//--------------------------------------------------------[FRAKTIONSSPAWN]-------------------------------------------------------
public SetPlayerSpawn(playerid)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Army
{
SetPlayerColor(playerid, COLOR_GRUN);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1346.2050,492.3983,11.2027);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //Taxi
{
SetPlayerColor(playerid, COLOR_GELB);
SetPlayerPos(playerid, 1305.7644,-871.4286,39.5781);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
GivePlayerWeapon(playerid, 29, 500);
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) //Ordnungsamt
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -1593.3063,715.6408,-5.2422);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
GivePlayerWeapon(playerid, 26, 500);
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) //Swat
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -1593.3063,715.6408,-5.2422,276.6180);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
GivePlayerWeapon(playerid, 26, 500);
return 1;
}
Alles anzeigen