Bonsoir a tous
Etant donner que samp 0.3 arrive bientot je voudrais prensre un peu d avence sur mon GM
pouvant teste mon server sous 03 RC6 j ai voulu compiler mon mode pour voir si j amais il y avait beacoup de modif a faire
donc l histoire est simple quand je compiler sous 02 nikel aucun souchi comme on dit
par contre sous 03 rc6 j ai 16 erreur qui arrive:
if(strcmp(cmd,"/unban",true)==0)
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to unban");
return 1;
}
new unbanname[64];
unbanname = strtok(cmdtext,idx); <==== /*ici*/
if(!strlen(unbanname))
{
SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /unban [fullName]");
return 1;
}
//new sql[256];
format(sql, sizeof(sql), "SELECT id FROM players WHERE Name='%s'", unbanname);
printf("%s", sql);
samp_mysql_query(sql);
//if (DEBUG) SQLLog(sql);
samp_mysql_store_result();
if(strcmp(cmd, "/famput", true) == 0)
{
new fam = PlayerInfo[playerid][pFMember];
GetPlayerName(playerid, playername, sizeof(playername));
if (fam >= MAX_FAMILY)
{
SendClientMessage(playerid, COLOR_GREY, "You are not in the family!");
return 1;
}
if (!PlayerToPoint(2.0, playerid, FamilyInfo[fam][FamilyExt][0], FamilyInfo[fam][FamilyExt][1], FamilyInfo[fam][FamilyExt][2]))
{
SendClientMessage(playerid, COLOR_GREY, "You are not at your family turf");
return 1;
}
new subcmd[MAX_PLAYER_NAME];
subcmd = strtok(cmdtext,idx); <==== /*here*/
if (!strlen(subcmd))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /famput [money|mats|drugs] [amount]");
return 1;
}
tmp = strtok(cmdtext,idx);
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(12723) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(14374) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(14466) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(14549) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(38487) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(38774) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(38828) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(38965) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(38998) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39063) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39671) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39681) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39793) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39813) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39820) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrateur\Bureau\preparation 03\sarp.pwn(39881) : error 047: array sizes do not match, or destination array is too small
les erreurs revienne toujour a cette ligne subcmd = strtok(cmdtext,idx);
si quelqu un a une idee