error 035: argument type mismatch (argument 3)
//Pers File
forward PerseTerritories(playerid, name[], value[]);
public PerseTerritories(playerid, name[], value[])
{
if(!strcmp(name, "Retake1")) SetPVarString(playerid, "Retake1", value);
}
//later on
INI_ParseFile("/Territories/Areas.txt", "PerseTerritories", false, true, playerid, true, false);
new Color[15]; GetPVarString(playerid, "Retake1", Color, sizeof Color);
GangZoneShowForPlayer(playerid, AreaRetake1,Color); //ERROR LINE IS HERE :|
AreaRetake1 = GangZoneCreate(..);
Are you sure you did:
pawn Код:
|
I do not know why people seem to think all the time that colors are strings, because they are not. Colors are just numbers. A little more into depth: Wanna know why using -1 as color gives you white? Contrary to popular believe, it is not the 'default' color, but white (well, technically that's the default color, but if the SA-MP team decides to change it to something else, it won't be anymore). -1 equals 0xFFFFFFFF in hexadecimal notation (try it on a calculator), which - as you may know - is white.
|
forward PerseTerritories(playerid, name[], value);
public PerseTerritories(playerid, name[], value)
{
if(!strcmp(name, "Retake1")) SetPVarInt(playerid, "Retake1", value);
}
//later on
INI_ParseFile("/Territories/Areas.txt", "PerseTerritories", false, true, playerid, true, false);
new Color;
Color = GetPVarInt(playerid, "Retake1");
GangZoneShowForPlayer(playerid, AreaRetake1,Color);