[HELP]samp-server.
#1

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;
	}
Reply
#2

Maybe if you try this?:

PHP код:
if(strcmp("/zemiseme"cmdtexttrue9) == 0)
    {
        new 
string[128], sjeme;
        if(
sscanf(cmdtext"d"sjeme))
        {
            
SendClientMessage(playeridCOLOR_WHITE"{168BFF}INFO: {959561} /sjeme [kolicina]" );
            
SendClientMessage(playeridCOLOR_GREY"{B55B5B}Cijena po sjemenu: {009249}75$");
        }
        else
        {
            if(
sjeme >= 1)
            {
                if(
PlayerToPoint(playerid2.5330.3539,1123.0370,1083.8828))
                {

                    
PlayerInfo[playerid][pSjeme] += sjeme;
                    
GivePlayerMoney(playerid, -sjeme*75);
                    
format(stringsizeof(string), "{FF8080}Kupio si {6FDD00}%d {FF8080}sjemena! Sada ih imas {6FDD00}%d"sjemePlayerInfo[playerid][pSjeme]);
                    
SendClientMessage(playerid0xFF8040FFstring);
                }
                else 
SendClientMessage(playeridCOLOR_GREY"Nisi kod covjeka sa sjemenom!");
            }
            else 
SendClientMessage(playeridCOLOR_GREY"Ne idi ispod 1!");
        }
        return 
1;
    } 
If its not working, then check your sscanf plugin.
Reply
#3

no its not working give me some edvice plz y think is not the cmd problem
Reply
#4

Are you using SAMP 0.3d ?
Reply
#5

y think yes
Reply
#6

sscanf isn't compatible with it.
Reply
#7

LOCK,Deleted the cmd
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)