Trotzdem:
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(1779) : error 035: argument type mismatch (argument 2)
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(1785) : warning 202: number of arguments does not match definition
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(1785) : warning 202: number of arguments does not match definition
C:\Users\AddiLikeMc\Desktop\SAMP\samp03dsvr_R2_win32\gamemodes\SelfMade.pwn(1785) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
EDIT:
Hier mal der ganze code:
ocmd:su(playerid,params[])
{
new pID, pName[MAX_PLAYER_NAME], string1[28], wanteds;
if(pInfo[playerid][pLeader] == 1 || pInfo[playerid][pMember] == 1)
{
if(sscanf("uds",pID,wanteds,string1))return SendClientMessage(playerid,COLOR_RED,"[Benutzung]: /su [playerid] [Wanteds] [Grund max. 28 Zeichen]"); <----- Hier war der Fehler habe das params vergessen :D
if (pID == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_DARKRED,"Diese Spielerid ist nicht online!");
new cwanted;
cwanted = GetPlayerWantedLevel(pID);
GetPlayerName(pID, pName,sizeof pName);
SetPlayerWantedLevel(pID,wanteds);
SendClientMessage(pID,COLOR_PINK,"%s hat dir %d Wanteds gegeben. Grund: %s",PlayerName(playerid),wanteds,string1);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[playerid][pMember] == pInfo[i][pMember] || pInfo[playerid][pLeader] == pInfo[i][pLeader])
{
if(pInfo[playerid][pMember] == 1 ||pInfo[playerid][pLeader] == 1)
{
new Text1[128],Text2[128];
format(Text1,sizeof Text1,"HQ: An alle Einheiten! %s wird gesucht wegen %s.",pName,string1);
format(Text2,sizeof Text2,"HQ: Vergebene Wanteds: %d. Akutuelles Wantedlevel von %s: %d",wanteds,pName,cwanted);
}
}
}
}
}
return 1;
}