Habe hier einen Error:
C:\Users\Lukas\Desktop\PAWNO\gamemodes\SOMALIAREAL.pwn(665) : warning 209: function "ocmd_email" should return a value
C:\Users\Lukas\Desktop\PAWNO\gamemodes\SOMALIAREAL.pwn(666) : error 010: invalid function or declaration
ocmd:email(playerid,params[])
{
new WPlayer[MAX_PLAYER_NAME],
Playerx[MAX_PLAYER_NAME],
email[64],
string[128],
string1[128];
new pID;
if(sscanf(params, "us",pID,email))
{
return SendClientMessage(playerid,COLOR_WHITE,"Benutze: /email [playerid] [Text]");
}
if(Player[playerid][Laptop] == 0)
{
return SendClientMessage(playerid,COLOR_WHITE,"Du hast kein Laptop!");
}
if(Player[playerid][surfstick] < 0)
{
return SendClientMessage(playerid,COLOR_WHITE,"Du hast kein Surfstick!");
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(playerid,Playerx,sizeof(Playerx));
GetPlayerName(i,WPlayer,sizeof(WPlayer));
format(string,sizeof(string),"_______________E-mail_______________");
SendClientMessage(i,COLOR_YELLOW,string);
format(string,sizeof(string),"Neue E-mail von %s",Playerx);
SendClientMessage(i,COLOR_YELLOW,string);
format(string,sizeof(string),"%s schrieb: %s.",Playerx,email);
SendClientMessage(i,COLOR_YELLOW,string);
format(string1,sizeof(string1),"Deine E-mail wurde erfolgreich verschickt!");
SendClientMessage(playerid,COLOR_YELLOW,string1);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Kein Spieler mit ID online!"); }
}
}
return 1;
}