Hi,
Danke für deine Mühe^^ Ich habe doch Frank's Methode genommen^^
Aber da hab ich ein paar Errors.
Hier das Script:
if(!strcmp(cmdtext, "/soffduty", true)) //Plattform
{
if(isPlayerAnAdmin(playerid,1))
{
new Spieler[MAX_PLAYER_NAME], string[50];
GetPlayerName(playerid, Spieler, sizeof(Spieler));
format(string, sizeof(string), "Supporter %s ist OffDuty.",Spieler);
SendClientMessageToAll(0xFF8C00FF, string);
if(isPlayerInFrakt(playerid,1))
{
SetPlayerColor(playerid,COLOR_BLAU);
}
else if(isPlayerInFrakt(playerid,2))
{
SetPlayerColor(playerid,COLOR_RED);
}
else if(isPlayerInFrakt(playerid,3))
{
SetPlayerColor(playerid,COLOR_ORANGE);
}
return 1;
}
}
Errors:
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4027) : error 029: invalid expression, assumed zero
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4027) : error 035: argument type mismatch (argument 2)
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4050) : error 029: invalid expression, assumed zero
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4050) : error 035: argument type mismatch (argument 2)
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4073) : error 029: invalid expression, assumed zero
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4073) : error 035: argument type mismatch (argument 2)
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4096) : error 029: invalid expression, assumed zero
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4096) : error 035: argument type mismatch (argument 2)
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4119) : error 029: invalid expression, assumed zero
C:\Users\Vince\Desktop\Selfmade123\gamemodes\Selfmade123.pwn(4119) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Die Errors sind alle bei den SetPlayerColor's
Mfg Vince