[HELP]samp-server. - 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)
+--- Thread: [HELP]samp-server. (
/showthread.php?tid=287966)
[HELP]samp-server. -
mayk - 05.10.2011
The Samp-server.exe Can't Load the Gm What is Wrong ?
Y made a cmd /zemidroga here is it,When this cmd is in gm the samp-server.exe can't start when y delete cmd the samp-server.exe is Running..
http://zaslike.com/files/d465dws7650xpl5u36tj.png here is a picture
Код:
if(strcmp(cmd, "/zemiseme", true) == 0)
{
new string[128], sjeme;
if(sscanf(cmdtext, "d", sjeme))
{
SendClientMessage(playerid, COLOR_WHITE, "{168BFF}INFO: {959561} /sjeme [kolicina]" );
SendClientMessage(playerid, COLOR_GREY, "{B55B5B}Cijena po sjemenu: {009249}75$");
}
else
{
if(sjeme >= 1)
{
if(PlayerToPoint(playerid, 2.5, 330.3539,1123.0370,1083.8828))
{
PlayerInfo[playerid][pSjeme] += sjeme;
GivePlayerMoney(playerid, -sjeme*75);
format(string, sizeof(string), "{FF8080}Kupio si {6FDD00}%d {FF8080}sjemena! Sada ih imas {6FDD00}%d", sjeme, PlayerInfo[playerid][pSjeme]);
SendClientMessage(playerid, 0xFF8040FF, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nisi kod covjeka sa sjemenom!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ne idi ispod 1!");
}
}
return 1;
}
Re: [HELP]samp-server. -
WoodPecker - 05.10.2011
Maybe if you try this?:
PHP код:
if(strcmp("/zemiseme", cmdtext, true, 9) == 0)
{
new string[128], sjeme;
if(sscanf(cmdtext, "d", sjeme))
{
SendClientMessage(playerid, COLOR_WHITE, "{168BFF}INFO: {959561} /sjeme [kolicina]" );
SendClientMessage(playerid, COLOR_GREY, "{B55B5B}Cijena po sjemenu: {009249}75$");
}
else
{
if(sjeme >= 1)
{
if(PlayerToPoint(playerid, 2.5, 330.3539,1123.0370,1083.8828))
{
PlayerInfo[playerid][pSjeme] += sjeme;
GivePlayerMoney(playerid, -sjeme*75);
format(string, sizeof(string), "{FF8080}Kupio si {6FDD00}%d {FF8080}sjemena! Sada ih imas {6FDD00}%d", sjeme, PlayerInfo[playerid][pSjeme]);
SendClientMessage(playerid, 0xFF8040FF, string);
}
else SendClientMessage(playerid, COLOR_GREY, "Nisi kod covjeka sa sjemenom!");
}
else SendClientMessage(playerid, COLOR_GREY, "Ne idi ispod 1!");
}
return 1;
}
If its not working, then check your sscanf plugin.
Re: [HELP]samp-server. -
mayk - 05.10.2011
no its not working give me some edvice plz y think is not the cmd problem
Re: [HELP]samp-server. - Max_Coldheart - 05.10.2011
Are you using SAMP 0.3d ?
Re: [HELP]samp-server. -
mayk - 05.10.2011
y think yes
Re: [HELP]samp-server. - Max_Coldheart - 05.10.2011
sscanf isn't compatible with it.
Re: [HELP]samp-server. -
mayk - 05.10.2011
LOCK,Deleted the cmd