Some Help Please ??
#1

anyone help me with these errors:
Код:
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : fatal error 107: too many error messages on one line
Here Is The Lines Of Errors:
Line 59:
Код:
CMD:piss(playerid,parmas[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING); /line 59
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}
Line 71:
Код:
CMD:carry(playerid,parmas[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY); //line 71
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}
Line 128:
Код:
CMD:animhelp(playerid,params[])
{
    SendClientMessage(playerid, COLOR_ORANGE, /cigar,/drinkbeer,/phone,/sit.); //line 128
    SendClientMessage(playerid, COLOR_ORANGE, /dance1,/dance2,/dance3,dance4.);
    SendClientMessage(playerid, COLOR_ORANGE, /stopphone,/carry,/cola,/sit.);
    SendClientMessage(playerid, COLOR_ORANGE, /hundsup,/cuffed,Made By Aymane.);
       return 1;
}
And Thanks For Helping.
Reply
#2

CMD:animhelp(playerid,params[])
{
SendClientMessage(playerid, COLOR_ORANGE, /cigar,/drinkbeer,/phone,/sit.); //line 128
SendClientMessage(playerid, COLOR_ORANGE, /dance1,/dance2,/dance3,dance4.);
SendClientMessage(playerid, COLOR_ORANGE, /stopphone,/carry,/cola,/sit.);
SendClientMessage(playerid, COLOR_ORANGE, /hundsup,/cuffed,Made By Aymane.);
return 1;
}

Return must be with 1tab,not 2.
Reply
#3

pawn Код:
CMD:carry(playerid,params[])
pawn Код:
CMD:piss(playerid,params[])
You're missing the quotes
pawn Код:
SendClientMessage(playerid, COLOR_ORANGE, "/cigar,/drinkbeer,/phone,/sit."); //line 128
SendClientMessage(playerid, COLOR_ORANGE, "/dance1,/dance2,/dance3,dance4.");
SendClientMessage(playerid, COLOR_ORANGE, "/stopphone,/carry,/cola,/sit.");
SendClientMessage(playerid, COLOR_ORANGE, "/hundsup,/cuffed,Made By Aymane.");
Should recommend you to read the tutorials.
Reply
#4

more explaination please.
Reply
#5

I fixed some but i still have this:
Код:
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(133) : warning 217: loose indentation
Reply
#6

Код:
#define SPECIAL_ACTION_PISSING 68 //Put this on top of everything
#define SPECIAL_ACTION_CARRY 25 //Put this on top of everything

CMD:piss(playerid,params[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING); /line 59
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}


CMD:carry(playerid,params[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY);
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}

CMD:animhelp(playerid,params[])
{
    SendClientMessage(playerid, COLOR_ORANGE, "/cigar,/drinkbeer,/phone,/sit."); //line 128
    SendClientMessage(playerid, COLOR_ORANGE, "/dance1,/dance2,/dance3,dance4.");
    SendClientMessage(playerid, COLOR_ORANGE, "/stopphone,/carry,/cola,/sit.");
    SendClientMessage(playerid, COLOR_ORANGE, "/hundsup,/cuffed,Made By Aymane.");
    return 1;
}
Reply
#7

all this is already done:
Код:
#include <a_samp>
#include <zcmd>
#include <aColors>

#define SPECIAL_ACTION_PISSING
#define SPECIAL_ACTION_CARRY
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define cigar
#define drinkbeer
#define phone
#define sit


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Animations By Aymane LOADED!");
	print("--------------------------------------\n");
	return 1;
}
Reply
#8

But it is badly defined, put it as it happens.
Reply
#9

PHP код:
#include <a_samp>
#include <zcmd>
#include <aColors>
#define SPECIAL_ACTION_PISSING // nothing 
#define SPECIAL_ACTION_CARRY // nothing
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define cigar
#define drinkbeer
#define phone
#define sit 
seems like you havent currently defined SPECIAL_ACTION_PISSING and SPECIAL_ACTION_CARRY,
cause in your script there are nothing,

try
Speedpro said
Code:
PHP код:
#define SPECIAL_ACTION_PISSING 68 // now SPECIAL_ACTION_PISSING is 68
#define SPECIAL_ACTION_CARRY 25 // now SPECIAL_ACTION_CARRY is 25 
Reply
#10

tthx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)