Liebe Community,
Ich hatte ein Werbeblock system für die newsreporter erstellt und komme nicht weiter (mit dini)
ocmd:createwb(playerid,params[]) 
{ 
if(loggedin[playerid] == 0) return SendClientMessage(playerid,GELB,"Du bist nicht eingeloggt!"); 
if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pAdmin] >= 7) 
{ 
new text[10]; 
new object; 
new Float:x,Float:y,Float:z; 
GetPlayerPos(playerid,x,y,z); 
if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_YELLOW,"/createwb [text]"); 
object = CreateObject(19353,x,y,z,0.0,0.0,0.0); 
SetObjectMaterialText(object, text, 0, OBJECT_MATERIAL_SIZE_64x32, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); 
CreateWB(x,y,z,text); 
} 
else 
{ 
SendClientMessage(playerid,COLOR_RED,"Du bist nicht befugt!"); 
return 1; 
} 
return 1; 
} 
ocmd:removewb(playerid,params[]) 
{ 
if(loggedin[playerid] == 0) return SendClientMessage(playerid,GELB,"Du bist nicht eingeloggt!"); 
if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pAdmin] >= 7) 
{ 
new block; 
new pfad1[50]; 
new string[40]; 
if(sscanf(params,"d",block))return SendClientMessage(playerid,GELB,"/removewb [HausID]"); 
format(string,sizeof(string),"Werbe-Tafel %d gelöscht!",block); 
format(pfad1,50,"/block/%d.txt",block); //nun ist der pfad1 der Datei im String "pfad1". 
dini_Remove(pfad1); 
SendClientMessage(playerid,COLOR_YELLOW,string); 
} 
else 
{ 
SendClientMessage(playerid,COLOR_RED,"Du bist nicht befugt!"); 
return 1; 
} 
return 1; 
}
Das kreieren und laden der Blöcke:
stock CreateWB(Float:x,Float:y,Float:z,text)
{
 new pfad1[50];
 format(pfad1,50,"%d.txt",MAX_HAUS);
 for(new i=1;i<MAX_BLOCK;i++)
 {
   format(pfad1,50,"/block/%d.txt",i);
   if(!fexist(pfad1)) // wenn diese Datei noch nicht existiert
   {
      dini_Create(pfad1); // dann erstellen wir sie
      dini_FloatSet(pfad1,"x",x); // und füllen sie mit unseren Werten.
      dini_FloatSet(pfad1,"y",y);
      dini_FloatSet(pfad1,"z",z);
      dini_Set(pfad1,"text",text); // GEÄNDERT stand vorher dini_IntSet
      return LoadWB(i);
   }
 }
 return 1;
}
stock LoadWB(wbid)
{
 new pfad1[50];
 new string1[100];
 format(pfad1,50,"/block/%d.txt",wbid);
 if(!fexist(pfad1))return 0;
 WBInfo[wbid][wb_x] = dini_Float(pfad1,"x");
 WBInfo[wbid][wb_y] = dini_Float(pfad1,"y");
 WBInfo[wbid][wb_z] = dini_Float(pfad1,"z");
 WBInfo[wbid][wb_text] = dini_Int(pfad1,"text");
 new Float:wx = WBInfo[wbid][wb_x];
 new Float:wy = WBInfo[wbid][wb_y];
 new Float:wz = WBInfo[wbid][wb_z];
 new object = WBInfo[wbid][wb_object];
 object = CreateObject(19353, wx, wy, wz, 0.0, 0.0, 0.0);
 format(string1,sizeof(string1),"{DE0000}%s",WBInfo[wbid][wb_text]);
 SetObjectMaterialText(object, string1, 0, OBJECT_MATERIAL_SIZE_64x32, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
 return 1;
}
Dann kommt dieser Error: //edit CreateWB nun kommt statt der Error
C:\Users\user\Desktop\Heyho GRF\gamemodes\DRP.pwn(66739) : error 035: argument type mismatch (argument 4) 
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Diese Errors:
C:\Users\user\Desktop\Heyho GRF\gamemodes\DRP.pwn(66739) : error 035: argument type mismatch (argument 4)
C:\Users\user\Desktop\Heyho GRF\gamemodes\DRP.pwn(69692) : error 035: argument type mismatch (argument 3)
C:\Users\user\Desktop\Heyho GRF\gamemodes\DRP.pwn(69679) : warning 203: symbol is never used: "text"
Kann mir wer helfen? =/
 
		 
		
		
	 
			
									
		