20.04.2011, 14:29
Please help me for fix errors.
Код:
D:\SaMp\eGammerv4\gamemodes\eGamer.pwn(17370) : error 047: array sizes do not match, or destination array is too small D:\SaMp\eGammerv4\gamemodes\eGamer.pwn(17890) : error 047: array sizes do not match, or destination array is too small D:\SaMp\eGammerv4\gamemodes\eGamer.pwn(20681) : warning 219: local variable "mod" shadows a variable at a preceding level D:\SaMp\eGammerv4\gamemodes\eGamer.pwn(49039) : error 021: symbol already defined: "strtok" D:\SaMp\eGammerv4\gamemodes\eGamer.pwn(49054) : error 047: array sizes do not match, or destination array is too small
PHP код:
new x_nr[24];
x_nr = strtok(cmdtext, idx); // 17370
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givenote [playerid/PartOfName] [note id]");
return 1;
}
PHP код:
new x_nr[64];
x_nr = strtok(cmdtext, idx); // 17890
if(!strlen(x_nr))
{
SendClientMessage(playerid, CRISTIAN,"_______________________________________");
PHP код:
new ammocharge;
new mod = 100; // 20681
new location = PlayerInfo[playerid][pLocal];
if(location == 99 || location == 100 || location == 102)
PHP код:
strtok(const string[], &index) // 49039
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result; // 49054
}