Guten Tag Freunde,
ich habe folgenden Portbefehl:
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/parlament", true))
//if (strcmp("/parlament", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1845.1143,-1324.7181,-29.5741,352.5542);
SendClientMessage(playerid, 0xFFFFFFFF, "Port -> Parlament");
return 1;
}
if(!strcmp(cmdtext, "/door", true))
//if (strcmp("/door", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1838.2764,-1306.1941,-30.8550,359.4475);
SendClientMessage(playerid, 0xFFFFFFFF, "Port -> Door");
return 1;
}
if(!strcmp(cmdtext, "/haus", true))
//if (strcmp("/haus", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1163.6266,-2042.6689,69.0078,173.3259);
SendClientMessage(playerid, 0xFFFFFFFF, "Port -> Parlamentgebäude");
return 1;
}
Beim compilen bekomme ich folgende Fehler:
warning 202: number of arguments does not match definition
warning 209: function "OnPlayerCommandText" should return a value
error 010: invalid function or declaration
error 055: start of function body without function header
error 010: invalid function or declaration
error 010: invalid function or declaration
error 055: start of function body without function header
error 010: invalid function or declaration
Bitte erklärt es noobfreundlich, da ich ein eiserner Anfänger bin.
Liebe Grüße,
JT