Im stuck
#1

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?
Reply
#2

Umm what about a little help?
Reply
#3

*bump*
12 hours
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)