SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 11/08/2009, 11:33 AM   #1
nuriel8833's Avatar
Join Date: Jun 2009
Location: Israel
Posts: 1,157
Reputation: 16
Default problem with DINI

i have this command:
pawn Code:
if (strcmp(cmd, "/s", true) == 0)
 if(PlayerInfo[playerid][pAdmin] < 3) return DenyMessage(playerid, 3);
 tmp = strtok(cmdtext, idx);
 SendClientMessage(playerid,COLOR_WHITE,"/s [1-200]");
 SendClientMessage(playerid,COLOR_WHITE,"This command is saving a position,every position that you want");
  SendClientMessage(playerid,COLOR_WHITE,"its help the admins+players go to places faster");
  SendClientMessage(playerid,COLOR_WHITE,"the position number must be between 1 to 200");
   SendClientMessage(playerid,COLOR_WHITE,"The positions will save in a file forever,unless you change/delete the position");
 positionnum = strval(tmp);
  if(positionnum < 0||positionnum >200) return SendClientMessage(playerid,COLOR_WHITE,"Warning!: Position must be 1-200!");
 new Float:Pos[MAX_PLAYERS][4];
    GetPlayerPos(playerid,Pos[playerid][0], Pos[playerid][1], Pos[playerid][2], Pos[playerid][3])
    dini_IntSet("SavesPositions.txt", "Pos[playerid][0]");
    dini_IntSet("SavesPositions.txt", "Pos[playerid][1]");
    dini_IntSet("SavesPositions.txt", "Pos[playerid][2]");
    dini_IntSet("SavesPositions.txt", "Pos[playerid][3]");
 return 1;

and im scared it wont work,so is it gonna work or what
and if it gonna work i think if i will save a position (no matter which of them) it will set all the positions to the number that i said
how to fix that

please explain me also what did you fixed so i will learn in the next time
Back to forums
Although I am not scripting much,only my gamemode on my free time

My works:
ŧ[Tutorial] Kills Table
nuriel8833 is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post problem XLukasX Help Archive 3 01/03/2010 03:41 PM
Dini Problem Rapfabrik Help Archive 0 21/10/2009 09:45 PM
[Solved] Problem with Dini SiJ Help Archive 3 07/08/2009 03:27 PM
DINI Write Problem... AlexandA Help Archive 2 25/07/2009 08:47 PM
[Dini] Another Problem =\ borisblat Help Archive 3 30/05/2009 01:12 PM

All times are GMT. The time now is 01:19 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.