Errors :
C:\Users\ANDY\Desktop\Pawno\gamemodes\DR.pwn(497) : error 012: invalid function call, not a valid address
C:\Users\ANDY\Desktop\Pawno\gamemodes\DR.pwn(497) : warning 215: expression has no effect
C:\Users\ANDY\Desktop\Pawno\gamemodes\DR.pwn(497) : error 001: expected token: ";", but found ")"
C:\Users\ANDY\Desktop\Pawno\gamemodes\DR.pwn(497) : error 029: invalid expression, assumed zero
C:\Users\ANDY\Desktop\Pawno\gamemodes\DR.pwn(497) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Code:
ocmd:makeleader(playerid, params[])
{
new pID; new fraktname; new string[128];
if(!IsPlayerAdmin(playerid))return SCM(playerid,Rot,"Du bist kein Admin");
if(!IsPlayerConnected(pID))return SCM(playerid,Rot,"Dieser Spieler ist nicht Online");
if(sscanf(params,"ui",pID,fraktname))return SendClientMessage(playerid,Rot,"/makeleader [SpielerID] [FraktionID]");
format(string,sizeof(string),"AdmCmd: %s wurde von %s zum Leader gemacht. Fraktion: %s",SpielerName(pID),SpielerName(playerid),fraktname);
SetPVarInt(pID,"Fraktion",fraktname(pID));
SpielerSpeichern(pID);
return 1;
}
2 Code:
#define fraktname1 "Fahrschule"