SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/10/2014, 05:39 AM   #1
TheNerka
Huge Clucker
 
Join Date: Aug 2013
Posts: 240
Reputation: 2
Default Doesn't give weapons

Code:
for(new z = 0; z < 12; z++)
            {
                new q[128], qq[128];
                format(q, sizeof(q), "Weapon%d", z);
                format(qq, sizeof(qq), "Weapona%d", z);
                PlayerData[playerid][Weapon][z] = cache_get_field_content_int(i, q, Mysql_users);
                PlayerData[playerid][Weapona][z] = cache_get_field_content_int(i, qq, Mysql_users);
                GivePlayerWeapon(playerid, PlayerData[playerid][Weapon][z], PlayerData[playerid][Weapona][z]);
            }
MYSQL_LOG
Code:
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon0", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon0", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona0", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona0", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon1", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon1", data: "24"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona1", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona1", data: "1509"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon2", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon2", data: "27"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona2", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona2", data: "1595"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon3", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon3", data: "34"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona3", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona3", data: "5645"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon4", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon4", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona4", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona4", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon5", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon5", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona5", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona5", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon6", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon6", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona6", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona6", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon7", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon7", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona7", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona7", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon8", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon8", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona8", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona8", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon9", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon9", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona9", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona9", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon10", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon10", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona10", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona10", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapon11", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapon11", data: "0"
[08:26:31] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Weapona11", connection: 1
[08:26:31] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Weapona11", data: "0"
but if im logged doesn't give weapons
__________________
Quote:
Roleplay server coming soon
TheNerka is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give weapons to All with one CMD? MAFIAWARS Scripting Help 5 26/09/2013 08:16 AM
Give player weapons from name Snowman12 Scripting Help 6 14/01/2012 01:46 AM
A command to Give weapons? M.A Help Archive 3 14/08/2010 06:07 PM
Give weapons when you tele? Quest123 Help Archive 1 30/10/2009 10:43 AM
Command To Give Weapons Dmac_91 Help Archive 4 27/05/2009 08:19 AM


All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.