Hallo,
ich habe mal ne frage was soll dieser warning bedeuten
warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
bitte um hilfe
Hallo,
ich habe mal ne frage was soll dieser warning bedeuten
warning 201: redefinition of constant/macro (symbol "MAX_PLAYERS")
bitte um hilfe
Das heißt du hasst ein Constante nochmals definiert.
Das Problem lößt du mit #undef über deiner Definition.
#undef MAX_PLAYERS
MFG Piet
also so ist dass script kannst du mit bitte sagen was wo hin soll
#define FILTERSCRIPT
#define MAX_PLAYERS 500#undef MAX_PLAYERS
enum pInfo{ pVIPClub,};
new PlayerInfo[MAX_PLAYERS][pInfo];
new AvailableSkins[]={ 280,281,284,265,266,267,282,283,288,284,287,285, 165,274,275,276,166,164,163,120,118,117,141, 187,295,61,189,194,262,11,171,172,186,240,220, 221,151,163,164,165,166,261,16,1,150,163,164, 165,166,186,185,124,125,126,123,122,121,105, 106,107,102,103,104,108,109,110,111,112,113, 127,173,174,175,21,22,236,25,250,28,35,37, 38,44,43,46,48,262,59,60,7,72,94,98,214, 215,226,231,76,89,40,41,93,39,233,55,56, 188,73,289,233,98,};
#include <a_samp>#include <ocmd>#include <sscanf>
#define Rot 0xCD0000FF
ocmd:skin(playerid, params[]){ new pID, Skin; if(PlayerInfo[playerid][pVIPClub] == 1) if(sscanf(params, "d", Skin)) return SendClientMessage(playerid, Rot, "Benutze: /skin [SkinID]"); if(Skin<0||Skin>299) return SendClientMessage(playerid,Rot, "Benutze nur SkinID zwischen 0 und 299!"); SetPlayerSkin(pID, Skin); return 1;}
ich habe doch geschrieben über nicht daneben.
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 500
MFG Piet
erstmal pack die ganzen #includes komplett nach oben, dann ist der error auch weg....
jetzt bekomme ich diesen error: error 017: undefined symbol "MAX_PLAYERS"
#include <a_samp>
#include <ocmd>
#include <sscanf>
#define Rot 0xCD0000FF
enum pInfo{ pVIPClub,};
new PlayerInfo[MAX_PLAYERS][pInfo];
new AvailableSkins[]={ 280,281,284,265,266,267,282,283,288,284,287,285, 165,274,275,276,166,164,163,120,118,117,141, 187,295,61,189,194,262,11,171,172,186,240,220, 221,151,163,164,165,166,261,16,1,150,163,164, 165,166,186,185,124,125,126,123,122,121,105, 106,107,102,103,104,108,109,110,111,112,113, 127,173,174,175,21,22,236,25,250,28,35,37, 38,44,43,46,48,262,59,60,7,72,94,98,214, 215,226,231,76,89,40,41,93,39,233,55,56, 188,73,289,233,98,};
ocmd:skin(playerid, params[]){ new pID, Skin; if(PlayerInfo[playerid][pVIPClub] == 1) if(sscanf(params, "d", Skin)) return SendClientMessage(playerid, Rot, "Benutze: /skin [SkinID]"); if(Skin<0||Skin>299) return SendClientMessage(playerid,Rot, "Benutze nur SkinID zwischen 0 und 299!"); SetPlayerSkin(pID, Skin); return 1;}
nächster error: error 013: no entry point (no public functions)