11.12.2015, 14:52
@vassilis - This:
Is the same as:
You shouldn't be going around looking for other methods if you cannot even get this one to work. And the above is pretty much what you would want to go with.
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
stock ResetInventory(playerid)
{
for(new b = 26; b <= 53; b ++)
{
strcpy(InventoryInfo[playerid][invtext][b], "None", 5);
}
return 1;
}
pawn Код:
stock ResetInventory(playerid)
{
for(new b = 26; b <= 53; b ++)
{
InventoryInfo[playerid][invtext][b][0] = EOS;
strcat(InventoryInfo[playerid][invtext][b], "None", 5);
}
return 1;
}