Jump to content

Question

Posted

Nick:Vlady

Problema:

else DOSActivat[playerid] = true;
Erori / warnings:
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Server\filterscripts\LuxAdmin.pwn(2681) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Lini/script:
CMD:dos(playerid, params[])
{
    if(AccInfo[playerid][pVip] > 6 || IsPlayerAdmin(playerid))
    //------------------------------------------------------------------------------
	if(DOSActivat[playerid] == false)
	else DOSActivat[playerid] = true;
		 GameTextForPlayer(playerid, "~w~~h~ding on shot~n~~g~~h~activated", 3000, 3);
    //------------------------------------------------------------------------------
		 DOSActivat[playerid] = false;
		 GameTextForPlayer(playerid, "~w~~h~ding on shot~n~~r~~h~deactivated", 3000, 3);
    //------------------------------------------------------------------------------
	return 1;
}

Ai incercat sa rezolvi singur ?: Nu ,ca nush

Bun.

Iti multumesc [glow=black,2,300]WopsS[/glow] ca te-ai deranjat sa-mi faci comanda Dos(Ding on Shot),am facut tot ce ai zis tu dar aici la comanda imi da o eroare.

2 answers to this question

Recommended Posts

  • Administrator
Posted

Pune asa:

[pawn]CMD:dos(playerid, params[])

{

    if(AccInfo[playerid][pVip] > 6 || IsPlayerAdmin(playerid))

{

    //------------------------------------------------------------------------------

    if(DOSActivat[playerid] == false)

    else DOSActivat[playerid] = true;

        GameTextForPlayer(playerid, "~w~~h~ding on shot~n~~g~~h~activated", 3000, 3);

    //------------------------------------------------------------------------------

        DOSActivat[playerid] = false;

        GameTextForPlayer(playerid, "~w~~h~ding on shot~n~~r~~h~deactivated", 3000, 3);

    //------------------------------------------------------------------------------

}

    return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.