C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(91) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(279) : error 017: undefined symbol "CreateDynamicPickup"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(678) : error 017: undefined symbol "DestroyAllDynamicPickups"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(2959) : error 017: undefined symbol "CreateDynamicPickup"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4007) : warning 203: symbol is never used: "InviteFaction"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4007) : warning 203: symbol is never used: "InviteFamily"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4007) : warning 203: symbol is never used: "InviteOffer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
stock AddPickupFromFile(DFileName[])
{
if(!fexist(DFileName)) return 0;
new File:PickupFile, PType, PModel, Float:PX, Float:PY, Float:PZ, pTotal, Line[128];
PickupFile = fopen(DFileName, io_read);
while(fread(PickupFile, Line))
{
if(Line[0] == '/' || isnull(Line)) continue;
unformat(Line, "fffii", PX, PY, PZ, PModel, PType);
CreateDynamicPickup(PModel, PType, PX, PY, PZ, -1, -1, -1, 100.0);//line 279
pTotal++;
}
fclose(PickupFile);
return pTotal;
}
public OnGameModeExit()
{
DestroyAllDynamicPickups();//line 678
return 1;
}
CMD:addpickup(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
new PModel, PType, Float:PX, Float:PY, Float:PZ;
if(unformat(params, "ih", PModel, PType)) return SendClientMessage(playerid, COLOR_RED,"[USAGE] /AddPickup < Pickup ID > < Spawn Type >");
GetPlayerPos(playerid, PX, PY, PZ);
AddPickupToFile(PICKUP_FILE_NAME, PX, PY, PZ, PModel, PType);
CreateDynamicPickup(PModel, PType, PX, PY, PZ, -1, -1, -1, 100.0);//2959
new Msg[100];
format(Msg,sizeof(Msg),"A New Pickup Has Been Added. Model: \"%d\" - Spawn Type: \"%d\"",PModel, PType);
return SendClientMessage(playerid, COLOR_GREEN, Msg);
}
else return AdminCMD(playerid, 5);
}
Did you included streamer?
|
Yeah i included Streamer, but now whneever i type /addpickup it crashes the server for some reason.
|
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(92) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4008) : warning 203: symbol is never used: "InviteFaction"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4008) : warning 203: symbol is never used: "InviteFamily"
C:\Users\Tab\Desktop\True Roleplay [0.3c]\True Roleplay [0.3c]\gamemodes\TRP.pwn(4008) : warning 203: symbol is never used: "InviteOffer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
I have 4 Warnings from commands that are in developement that arent related to the addpickup command but heres the warnings.
pawn Код:
|
new InviteOffer[MAX_PLAYERS];//204
new InviteFaction[MAX_PLAYERS];//205
new InviteFamily[MAX_PLAYERS];//206
#define CMD:%1(%2) \
forward cmd_%1(%2); \
public cmd_%1(%2)//92
if(unformat(params, "ih", PModel, PType)) return SendClientMessage(playerid, COLOR_RED,"[USAGE] /AddPickup < Pickup ID > < Spawn Type >");
Oh god, I don't even know why I asked you to post the warnings, anyways.
I recommend you use sscanf instead of this: PHP код:
|