01.01.2016, 14:27
i get these
Код:
C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3828) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3829) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3830) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3831) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3832) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3833) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3834) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3835) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3836) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3837) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3838) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3839) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3853) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3854) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3855) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3856) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3857) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3858) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3859) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3860) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3861) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3862) : error 035: argument type mismatch (argument 1) C:\Users\Nate\Desktop\SAMP-RP\gamemodes\R-RP.pwn(3863) : error 035: argument type mismatch (argument 1)
PHP код:
}
stock SaveTrunkSlot(playerid, slot)
{
new sql[128];
switch(slot)
{
case 0: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS1`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 1: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS2`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 2: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS3`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 3: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS4`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 4: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS5`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 5: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS6`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 6: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS7`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 7: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS8`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 8: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS9`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 9: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TS10`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 10: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TDS1`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 11: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TDS2`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 12: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `TDS3`=1 WHERE PlayerID='%d'", PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
}
return 1;
}
stock SaveTrunk(playerid, trunk, slot)
{
new sql[128];
switch(trunk)
{
case 1:
{
switch(slot)
{
case 0: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G1`='%d', `T1A1`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][0],PlayerInfo[playerid][pCar1TrunkAmmo][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 1: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G2`='%d', `T1A2`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][1],PlayerInfo[playerid][pCar1TrunkAmmo][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 2: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G3`='%d', `T1A3`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][2],PlayerInfo[playerid][pCar1TrunkAmmo][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 3: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G4`='%d', `T1A4`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][3],PlayerInfo[playerid][pCar1TrunkAmmo][3],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 4: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G5`='%d', `T1A5`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][4],PlayerInfo[playerid][pCar1TrunkAmmo][4],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 5: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G6`='%d', `T1A6`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][5],PlayerInfo[playerid][pCar1TrunkAmmo][5],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 6: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G7`='%d', `T1A7`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][6],PlayerInfo[playerid][pCar1TrunkAmmo][6],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 7: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G8`='%d', `T1A8`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][7],PlayerInfo[playerid][pCar1TrunkAmmo][7],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 8: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G9`='%d', `T1A9`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][8],PlayerInfo[playerid][pCar1TrunkAmmo][8],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 9: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1G10`='%d', `T1A10`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1GunTrunk][9],PlayerInfo[playerid][pCar1TrunkAmmo][9],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 10: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1WEED`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1TrunkDrugs][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 11: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1COKE`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1TrunkDrugs][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 12: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T1CRACK`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar1TrunkDrugs][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
}
}
case 2:
{
switch(slot)
{
case 0: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G1`='%d', `T2A1`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][0],PlayerInfo[playerid][pCar2TrunkAmmo][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 1: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G2`='%d', `T2A2`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][1],PlayerInfo[playerid][pCar2TrunkAmmo][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 2: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G3`='%d', `T2A3`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][2],PlayerInfo[playerid][pCar2TrunkAmmo][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 3: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G4`='%d', `T2A4`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][3],PlayerInfo[playerid][pCar2TrunkAmmo][3],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 4: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G5`='%d', `T2A5`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][4],PlayerInfo[playerid][pCar2TrunkAmmo][4],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 5: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G6`='%d', `T2A6`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][5],PlayerInfo[playerid][pCar2TrunkAmmo][5],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 6: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G7`='%d', `T2A7`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][6],PlayerInfo[playerid][pCar2TrunkAmmo][6],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 7: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G8`='%d', `T2A8`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][7],PlayerInfo[playerid][pCar2TrunkAmmo][7],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 8: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G9`='%d', `T2A9`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][8],PlayerInfo[playerid][pCar2TrunkAmmo][8],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 9: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2G10`='%d', `T2A10`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2GunTrunk][9],PlayerInfo[playerid][pCar2TrunkAmmo][9],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 10: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2WEED`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2TrunkDrugs][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 11: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2COKE`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2TrunkDrugs][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 12: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T2CRACK`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar2TrunkDrugs][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
}
}
case 3:
{
switch(slot)
{
case 0: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G1`='%d', `T3A1`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][0],PlayerInfo[playerid][pCar3TrunkAmmo][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 1: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G2`='%d', `T3A2`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][1],PlayerInfo[playerid][pCar3TrunkAmmo][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 2: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G3`='%d', `T3A3`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][2],PlayerInfo[playerid][pCar3TrunkAmmo][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 3: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G4`='%d', `T3A4`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][3],PlayerInfo[playerid][pCar3TrunkAmmo][3],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 4: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G5`='%d', `T3A5`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][4],PlayerInfo[playerid][pCar3TrunkAmmo][4],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 5: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G6`='%d', `T3A6`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][5],PlayerInfo[playerid][pCar3TrunkAmmo][5],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 6: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G7`='%d', `T3A7`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][6],PlayerInfo[playerid][pCar3TrunkAmmo][6],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 7: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G8`='%d', `T3A8`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][7],PlayerInfo[playerid][pCar3TrunkAmmo][7],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 8: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G9`='%d', `T3A9`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][8],PlayerInfo[playerid][pCar3TrunkAmmo][8],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 9: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3G10`='%d', `T3A10`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3GunTrunk][9],PlayerInfo[playerid][pCar3TrunkAmmo][9],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 10: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3WEED`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3TrunkDrugs][0],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 11: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3COKE`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3TrunkDrugs][1],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
case 12: { format(sql, sizeof(sql), "UPDATE `samp_trunks` SET `T3CRACK`='%d' WHERE PlayerID='%d'", PlayerInfo[playerid][pCar3TrunkDrugs][2],PlayerInfo[playerid][pDBID]); mysql_query(sql, THREAD_UPDATE, playerid); }
}
}
}
return 1;
}