Saving Character
#1

Hey guys, i ran into a small problem. My skins save onplayerdisconnect but when i do /rcon gmx it puts back cj, how do i make skin save on /rcon gmx?





Also how do i add multiple cases on dialog respond? I attempted to do Case 0, Case 1, but it gave me multiple errors, so what is the correct way for doing this?


Thanks in advance
Reply
#2

Bump o.o
Reply
#3

It's a small bug of samp. If it's on a filterscript, use /rcon reloadfs (FS NAME). I have same problem with my adminx FS(mine), and have to reload him, and use /rcon gmx for reenter on the game, and read from my dini file.


Quote:

@ This forum requires that you wait 120 seconds between posts. Please try again in 3 seconds.

I dont care (:
Reply
#4

@/rcon gmx, You should make a command that saves everyone's stats then GMX.

pawn Код:
public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
{
    switch ( dialogid )
    {
         case 1:
         {
         }
     }
     return 1;
}
Reply
#5

I guess add skins saving in On<script>Exit, and please don't use "characters" when meaning players. Char(acter) is other thing.
Reply
#6

Skins are added to save, its works perfect is i log out then come back but on gmx it doesnt work at all
Reply
#7

pawn Код:
C:\Documents and Settings\n\Desktop\New Folder\gamemodes\nl.pwn(703) : error 014: invalid statement; not in switch
C:\Documents and Settings\n\Desktop\New Folder\gamemodes\nl.pwn(703) : warning 215: expression has no effect
C:\Documents and Settings\n\Desktop\New Folder\gamemodes\nl.pwn(703) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\n\Desktop\New Folder\gamemodes\nl.pwn(703) : error 029: invalid expression, assumed zero
C:\Documents and Settings\n\Desktop\New Folder\gamemodes\nl.pwn(703) : fatal error 107: too many error messages on one line
Line 703:
pawn Код:
if (dialogid == 5) // Job List
    {
          case 1:
         {
         SendClientMessage(playerid, COLOR_LIGHTBLUE, "Here Is The Location For Truck Drivers Headquarter");
         SetPlayerCheckpoint(playerid, 1751.5665,-1945.2590,13.5636, 3.0);
         }
            case 2:
            {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Here Is The Location For Bus Drivers Headquarter");
                SetPlayerCheckpoint(playerid, 1751.5665,-1945.2590,13.5636, 3.0);
          }
     }
703 is the first line btw
Reply
#8

How about just add the skin saving right before the actual GMX? But put it in the same command . So that way it saves the skin and then it GMXs for you.
Reply
#9

I will try that, but i have the errors with case
Reply
#10

Here:

Код:
if(dialogid == urdialognumber&& response)
{
switch(listitem)
{
case 0:
{
// you're code
}
case 1:
{
// you're code
}
case 2:
{
// you're code
}
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)