Saving Character - 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: Saving Character (
/showthread.php?tid=193781)
Saving Character -
Anthonyx3' - 27.11.2010
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
Re: Saving Character -
Anthonyx3' - 27.11.2010
Bump o.o
Re: Saving Character -
blackwave - 27.11.2010
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 (:
Re: Saving Character -
Retardedwolf - 27.11.2010
@/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;
}
Re: Saving Character -
RSX - 27.11.2010
I guess add skins saving in On<script>Exit, and please don't use "characters" when meaning players. Char(acter) is other thing.
Re: Saving Character -
Anthonyx3' - 27.11.2010
Skins are added to save, its works perfect is i log out then come back but on gmx it doesnt work at all
Re: Saving Character -
Anthonyx3' - 27.11.2010
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
Re: Saving Character -
XoSarahMoX - 27.11.2010
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.
Re: Saving Character -
Anthonyx3' - 27.11.2010
I will try that, but i have the errors with case
Re: Saving Character -
XoSarahMoX - 27.11.2010
Here:
Код:
if(dialogid == urdialognumber&& response)
{
switch(listitem)
{
case 0:
{
// you're code
}
case 1:
{
// you're code
}
case 2:
{
// you're code
}
}
}