06.06.2011, 14:17
Hmmmm after i commented out the strtok i get the following errors.
(1201) : error 047: array sizes do not match, or destination array is too small
(1234) : error 047: array sizes do not match, or destination array is too small
(1383) : error 047: array sizes do not match, or destination array is too small
Error 1
(Line 119public OnPlayerCommandText(playerid, cmdtext[])
(Line 1199){
(Line 1200) new idx, tmp[128], cmd[128];
(Line 1201) cmd = strtok(cmdtext, idx);
(Line 1202) if(strcmp(cmd, "/trunk", true) == 0)
(Line 1202) {
Error 2
(Line 1231) if(strcmp(x_nr, "putgun", true) == 0)
(Line 1232) {
(Line 1233) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1234) tmp = strtok(cmdtext, idx);
(Line 1235) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk putgun [slot]"); return 1; }
(Line 1236) new slot = strval(tmp), weapon = GetPlayerWeapon(playerid);
Error 3
(Line 1380) if(strcmp(x_nr, "takegun", true) == 0)
(Line 1381) {
(Line 1382) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1383) tmp = strtok(cmdtext, idx);
(Line 1384) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk takegun [slot]"); return 1; }
(Line 1385) new slot = strval(tmp);
(Line 1386) if(slot < 1 || slot > 10) { SendClientMessage(playerid, 0xAFAFAFAA, " Slot can't be below 1 or above 10 !"); return 1; }
Do i just comment em out?
(1201) : error 047: array sizes do not match, or destination array is too small
(1234) : error 047: array sizes do not match, or destination array is too small
(1383) : error 047: array sizes do not match, or destination array is too small
Error 1
(Line 119public OnPlayerCommandText(playerid, cmdtext[])
(Line 1199){
(Line 1200) new idx, tmp[128], cmd[128];
(Line 1201) cmd = strtok(cmdtext, idx);
(Line 1202) if(strcmp(cmd, "/trunk", true) == 0)
(Line 1202) {
Error 2
(Line 1231) if(strcmp(x_nr, "putgun", true) == 0)
(Line 1232) {
(Line 1233) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1234) tmp = strtok(cmdtext, idx);
(Line 1235) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk putgun [slot]"); return 1; }
(Line 1236) new slot = strval(tmp), weapon = GetPlayerWeapon(playerid);
Error 3
(Line 1380) if(strcmp(x_nr, "takegun", true) == 0)
(Line 1381) {
(Line 1382) if(TrunkOpen[Vehicle[playerid]] == 0) { SendClientMessage(playerid, 0xAFAFAFAA, " You must open the trunk first !"); return 1; }
(Line 1383) tmp = strtok(cmdtext, idx);
(Line 1384) if(!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /trunk takegun [slot]"); return 1; }
(Line 1385) new slot = strval(tmp);
(Line 1386) if(slot < 1 || slot > 10) { SendClientMessage(playerid, 0xAFAFAFAA, " Slot can't be below 1 or above 10 !"); return 1; }
Do i just comment em out?