SA-MP Forums Archive
Im stuck - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Im stuck (/showthread.php?tid=89945)



Im stuck - nuriel8833 - 05.08.2009

I Made a code and I got to this level:
pawn Код:
if (strcmp(cmd, "/s", true) == 0)
    {
    if (!IsPlayerAdmin(playerid)) return 0;
    dini_Create("AdminsPositions.txt");
    new Float:X;
    new Float:Y;
    new Float:Z;
    new Float:A;
    new positionnum;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_PEACH,"USAGE: /s [1-200]");
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_DYELLOW,"This command is saving positions by the admins choices");
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_DYELLOW,"It makes easier to go to some places for the admins and for the players");
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_DYELLOW,"There are 200 positions,From 1-200 not including 0");
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_DYELLOW,"The positions are gonna save forever unless you change their positions");
        positionnum = strval(tmp);
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_PEACH,"Warning!: Position Must Be Between 1-200!");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"This command is saving positions by the admins choices");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"It makes easier to go to some places for the admins and for the players");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"There are 200 positions,From 1-200 not including 0");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"The positions are gonna save forever unless you change their positions"
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"/s [1-200]");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"This command is saving positions by the admins choices");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"It makes easier to go to some places for the admins and for the players");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"There are 200 positions,From 1-200 not including 0");
        if(positionnum < 0||positionnum > 200) return SendClientMessage(playerid,COLOR_DYELLOW,"The positions are gonna save forever unless you change their positions"
        GetPlayerPosition(playerid,X,Y,Z)
        GetPlayerFacingAngle(playerid,A);
        SendClientMessage(playerid,COLOR_BPEACH,"Admin %s(ID:%d) started the %d second countdown!",Playername,otherplayerid,cd_sec);
        }
        return 1;
  }
But now how can i make the dini file set?



Re: Im stuck - nuriel8833 - 05.08.2009

Umm what about a little help?


Re: Im stuck - nuriel8833 - 06.08.2009

*bump*
12 hours