so jetzt mal neu :stock Sms2(playerid)
{
MAX_NACHRICHTEN[playerid]=0;
new Nama[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nama,sizeof(Nama));
new mysql[60];
format(mysql, sizeof (mysql), "SELECT * FROM sms WHERE Empfänger = '%s' ORDER BY ÌD DESC",Nama);
mysql_query(mysql);
mysql_store_result();
if(mysql_num_rows() > 0)
{
new string[256];
new Data[MAX_PLAYERS][128];
while(mysql_fetch_row_format(Data[playerid]))
{
MAX_NACHRICHTEN[playerid]++;
new id2 = MAX_NACHRICHTEN[playerid];
mysql_fetch_field("ID",Data[playerid]);
NachrichtenArray[playerid][id2][idm] = strval(Data[playerid]);
mysql_fetch_field("Sender",Data[playerid],);
id2 = MAX_NACHRICHTEN[playerid];
format(NachrichtenArray[playerid][id2][absenderm],24,Data[playerid]);
format(string, sizeof(string), "%s\nVon:%s",string,NachrichtenArray[playerid][MAX_NACHRICHTEN[playerid]][inhaltm]);
}
mysql_free_result();
SendClientMessage(playerid,Rot,string);
ShowPlayerDialog(playerid,DIALOG_SMS,DIALOG_STYLE_LIST,"SMS Postfach",string,"Beenden"," ");
}
else
{
SendClientMessage(playerid,Rot,"Du hast keine Nachrichten.");
}
return 1;
}
nur ich habe diese eroors: C:\Users\Jan\Desktop\op\gamemodes\neu.pwn(3398) : error 035: argument type mismatch (argument 1)
C:\Users\Jan\Desktop\op\gamemodes\neu.pwn(3400) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
hier die zeilen : mysql_fetch_field("ID",Data[playerid]);
mysql_fetch_field("Sender",Data[playerid]);
MFG janpplayer
/edit noch etwas hinzugefügt
/edit überschrift geändert
/edit nochmal neuauflage
/edit neue überschrift details siehe unten