Hallo,
ich hab grad versucht nen Fraktionschat zu machen, und wer hätts gedacht, ich bin gescheitert xD
Hier mal der Command, und die Errors, ich hab keine Ahnung was ich falsch hab....
dcmd_f(playerid,params[])
{
new msg[256];
if(sscanf(params, "s", msg))
{
return SendClientMessage(playerid,Blau,"Benutzung: /f [Text]");
}
if(pInfo[playerid][pgTeam] ==1)
{
new name[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid,name,sizeof(name));
if(pInfo[playerid][pgTeam] == 1)
{
if(pInfo[playerid][pRang] == 1)
{
format(sting,sizeof(string),"Neuling %s: %s",name,msg);//Zeile 588
}
else if(pInfo[playerid][pRang] == 2)
{
format(sting,sizeof(string),"Fighter %s: %s",name,msg);
}
else if(pInfo[playerid][pRang] == 3)
{
format(sting,sizeof(string),"Solider %s: %s",name,msg);
}
else if(pInfo[playerid][pRang] == 4)
{
format(sting,sizeof(string),"Capo %s: %s",name,msg);
}
else if(pInfo[playerid][pRang] == 5)
{
format(sting,sizeof(string),"Underboss %s: %s",name,msg);
}
else if(pInfo[playerid][pRang] == 6)
{
format(sting,sizeof(string),"Boss %s: %s",name,msg); //Zeile 608
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][pgTeam] == 1)
{
SendClientMessage(i,FChat, string);
}
}
}
}
}
return 1;
}
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(588) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(588) : error 035: argument type mismatch (argument 1)
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(592) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(592) : error 035: argument type mismatch (argument 1)
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(596) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(596) : error 035: argument type mismatch (argument 1)
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(600) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(600) : error 035: argument type mismatch (argument 1)
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(604) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(604) : error 035: argument type mismatch (argument 1)
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(608) : error 017: undefined symbol "sting"
C:\Users\Thomas\Desktop\ServerSM\gamemodes\PartThommy.pwn(608) : error 035: argument type mismatch (argument 1)
wäre nett, wenn mir jemand sagen kann was da falsch ist...
LG
/edit: Rechtschreibung
/edit2: das gleiche XD