29.04.2017, 06:43
hello
PHP код:
C:\Users\Sanchez2\Desktop\LSRP\pawno\include\NewGeneration\modules\admin.pwn(1461) : error 017: undefined symbol "InvPlayer"
C:\Users\Sanchez2\Desktop\LSRP\pawno\include\NewGeneration\modules\admin.pwn(1461) : warning 215: expression has no effect
C:\Users\Sanchez2\Desktop\LSRP\pawno\include\NewGeneration\modules\admin.pwn(1461) : error 001: expected token: ";", but found "]"
C:\Users\Sanchez2\Desktop\LSRP\pawno\include\NewGeneration\modules\admin.pwn(1461) : error 029: invalid expression, assumed zero
C:\Users\Sanchez2\Desktop\LSRP\pawno\include\NewGeneration\modules\admin.pwn(1461) : fatal error 107: too many error messages on one line
PHP код:
case 15 : {
if(param[1] == 1) return SendClientMessage(playerid, COLOR_WHITE, "* Запрещенный предмет!");
new new_itemID = -1;
for(new i = 0; i < 15; i++) {
if(InvPlayer[user][i][item_id] == 0) - this error.
new_itemID = i;
}
if(new_itemID == -1) return SendClientMessage(playerid, COLOR_WHITE, "* У игрока нет свободного слота!");
new query[OUTPUT];
mysql_format(mysql, a_string, sizeof a_string, "INSERT INTO invertory (`storage_type`, `storage_type_id`, `item_type`, `quantity`, `created_by`, `created_time`) VALUES ('%d', '%d', '%d', '1', '%d', '%d')",
ITEM_STORAGE_TYPE_INV, PlayerInfo[user][p_id], param[1], PlayerInfo[playerid][p_id], gettime());
mysql_tquery(mysql, query, "", "");
format(a_string, sizeof a_string, "* %s выдал '%s' %s!", PlayerInfo[playerid][p_name], Items[param[1]][i_name], PlayerInfo[user][p_name]);
}