Also ich wollte das markierte einfügen nur es kommen 5 errors :O
ocmd:duty1(playerid,params[])
{
if(isPlayerInFrakt(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,10,221.6850,188.2365,1003.0313))
{
new string[128];
format(string,sizeof(string),"%s nimmt seine Marke und geht OnDuty.",SpielerName(playerid));
SendClientMessageToAll(ROT,string);
SetPlayerSkin(playerid,280);
SetPlayerColor(playerid,HELLBLAU);
SendClientMessage(playerid,GRÜN,"Mit /offduty gehst du OffDuty");
return 1;
}
return 1;
}
return 1;
}
//________Abhier____________//
{
if(isPlayerInFrakt(playerid,7))
{
if(IsPlayerInRangeOfPoint(playerid,10,1233.2334,-833.8812,1084.0078))
{
SetPlayerSkin(playerid,17);
SetPlayerColor(playerid,GRAU);
SendClientMessage(playerid,GRÜN,"Du bist nun OnDuty mit /offduty gehst du OffDuty");
return 1;
}
return 1;
}
return 1;
}
Hier die errors
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1642) : error 055: start of function body without function header
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1643) : error 010: invalid function or declaration
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1645) : error 010: invalid function or declaration
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1650) : error 010: invalid function or declaration
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1652) : error 010: invalid function or declaration
C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1654) : error 010: invalid function or declaration
Pawn compiler 3.2.3664