21.01.2018, 19:47
pawn Код:
C:\Users\o\Desktop\BDRP TRD\gamemodes\TRD.pwn(295) : error 001: expected token: ")", but found "["
C:\Users\o\Desktop\BDRP TRD\gamemodes\TRD.pwn(295) : error 029: invalid expression, assumed zero
C:\Users\o\Desktop\BDRP TRD\gamemodes\TRD.pwn(295) : warning 215: expression has no effect
C:\Users\o\Desktop\BDRP TRD\gamemodes\TRD.pwn(295) : error 001: expected token: ";", but found "]"
C:\Users\o\Desktop\BDRP TRD\gamemodes\TRD.pwn(295) : 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.
pawn Код:
stock GetDruggInfo(playerid, slot)
{
new info[64];
if(PlayerInfo[playerid][pDrug][slot] == 0) // line 295
{
info = "Empty";
}
else
{
format(info, sizeof(info), "%s(%d)", GetDrugName(PlayerInfo[playerid][pDrug][slot]), PlayerInfo[playerid][pDrugAmount][slot]);
}
return info;
}