11.06.2010, 02:29
im making a clan wars server /..... this is what i have
i am trying to make it so that if it recognizes the name then it will assign the person to a gang
and below that i have
and the errors i get are
i am trying to make it so that if it recognizes the name then it will assign the person to a gang
Код:
new tc_t [] [] = { {"[TC]airsoft222"}, {"[TC]Flyer"}, {"[TC]Big_Al"}, {"[TC]lizardking"} }; new gt_t [][] = { "[GT]JKL", "[GT]Kaweashkar", "[GT]eddie_quin", "[GT]KrazY", "[GT]Devin", "[GT]Wake", "[GT]T_Killah" }; new gtr_t [][] = { "[GTR]Mite", "[GTR]Big_Al", "[GTR]melis256", "[GTR]Ghostrider_09", "[GTR]hunter_cypert" };
Код:
public s2t1(playerid) { new name[300]; GetPlayerName(playerid,name,sizeof(name)); if(!strcmp(name,tc_t)) gTeam[playerid] = tc; return 1; } public s2t2(playerid) { new name[300]; GetPlayerName(playerid,name,sizeof(name)); if(!strcmp(name,gt_t)) gTeam[playerid] = gt; return 1; } public s2t3(playerid) { new name[300]; GetPlayerName(playerid,name,sizeof(name)); if(!strcmp(name,gtr_t)) gTeam[playerid] = gtr; return 1; }
Код:
C:\Users\Chandler\Desktop\[TC][GT][GTR]\gamemodes\ct.pwn(353) : error 048: array dimensions do not match C:\Users\Chandler\Desktop\[TC][GT][GTR]\gamemodes\ct.pwn(361) : error 048: array dimensions do not match C:\Users\Chandler\Desktop\[TC][GT][GTR]\gamemodes\ct.pwn(369) : error 048: array dimensions do not match Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.