help My script messed on me nasty help ERRORS
#1

Quote:

C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SW.pwn(2645) : error 017: undefined symbol "bigstrtok"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SW.pwn(2660) : error 017: undefined symbol "string"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SW.pwn(2660) : error 017: undefined symbol "string"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SW.pwn(2660) : error 029: invalid expression, assumed zero
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SW.pwn(2660) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Line 2660
Quote:

format(string, sizeof(string), "you have created a new clan: %s",clannames[cid])

Line 2645
Quote:

format(reason,sizeof(reason),"%s",bigstrtok(cmdtex t, idx));

Reply
#2

Put this above line 2660

pawn Код:
new string[128];
the second error put this at the buttom of your script

pawn Код:
stock bigstrtok(const string[], &idx)
{
  new length = strlen(string);
    while ((idx < length) && (string[idx] <= ' '))
    {
        idx++;
    }
    new offset = idx;
    new result[128];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
        result[idx - offset] = string[idx];
        idx++;
    }
    result[idx - offset] = EOS;
    return result;
}
Reply
#3

Quote:

C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2645) : error 017: undefined symbol "idx"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2662) : error 017: undefined symbol "CLANTEXT"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2667) : error 017: undefined symbol "cmd"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2672) : error 017: undefined symbol "string"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2672) : error 017: undefined symbol "string"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2672) : error 029: invalid expression, assumed zero
C:\Users\Hamza Ali\Desktop\[XTC]Man Server ORGINAL\gamemodes\SWCLAN.pwn(2672) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

LINE 2672
Quote:

if (strcmp(clannames[i]," ",false) == 1 && strlen(clannames[i])) format(string,sizeof(string),"%s%s (%d) ",string,clannames[i],i);

Line 2662
Quote:

SendClientMessage(playerid,CLANTEXT, string);

Line 2645
Quote:

format(reason,sizeof(reason),"%s",bigstrtok(cmdtex t, idx));

help please thanks advance
Reply
#4

BUMP
Reply
#5

post the method that line 2645 is inside, all the way down to line 2672.
Thanks.
Reply
#6

Here Line 2645 To Line 2672
Quote:

format(reason,sizeof(reason),"%s",bigstrtok(cmdtex t, idx));
if(!strlen(reason))
{
SendClientMessage(playerid, ORANGE, "USAGE: /cc [clan name]");
SendClientMessage(playerid, ORANGE, "FUNCTION: Will create a clan");
return 1;
}
for(new i = 9; i > -1; i--)
{
if (strcmp(clannames[i]," ",true) == 0 || !strlen(clannames[i])) cid = i;
}
if (cid == 99) return SendClientMessage(playerid,ORANGE,"too many clans are active try again later");
GetPlayerName(playerid, sendername, sizeof(sendername));
playerclan[playerid] = cid;
format(clannames[cid],10,"%s",reason);
new string[128];
format(string, sizeof(string), "you have created a new clan: %s",clannames[cid]);
SendClientMessage(playerid,CLANTEXT, string);
clanjoin[playerid] = 1;
return 1;
}

if(strcmp(cmdtext, "/clans", true) == 0)
{
SendClientMessage(playerid,GREEN,"Listing Clans:");
for(new i = 0; i < 10; i++)
{
if (strcmp(clannames[i]," ",false) == 1 && strlen(clannames[i])) format(string,sizeof(string),"%s%s (%d) ",string,clannames[i],i);

Reply
#7

Help Bump Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)