[HELP] FS -
scottygraham1990 - 29.09.2012
hi im try to use this fs but it will not work can any one tell me way thx for any help +REP for any help
Код:
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(26) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(28) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(38) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(40) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(49) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(99) : warning 203: symbol is never used: "IsRainbow"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
#include <a_samp>
new Timer1;
new Timer2;
new Timer3;
new Timer4;
new Timer5;
new Timer6;
new IsRainbow[MAX_PLAYERS];
forward Color1(playerid);
forward Color2(playerid);
forward Color3(playerid);
forward Color4(playerid);
forward Color5(playerid);
forward Color6(playerid);
forward Color7(playerid);
if(strcmp(cmdtext, "/rainbow", true)
{
if(!IsPlayerInAnyVehicle(playerid))
}
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
Timer1 = SetTimerEx("Color1",500,0,"d",playerid);
SendClientMessage(playerid,-1,"Rainbow car started! Use /rainbowoff to stop!");
IsRainbow[playerid] = 1;
return 1;
}
if(strcmp(cmdtext, "/rainbowoff", true)
{
KillTimer(Timer1);
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
SendClientMessage(playerid,-1,"You stopped the rainbow car!");
return 1;
}
public Color1(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer1);
ChangeVehicleColor(vehicleid,0,0);
Timer2 = SetTimerEx("Color2",500,0,"d",playerid);
}
public Color2(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer2);
ChangeVehicleColor(vehicleid,1,1);
Timer3 = SetTimerEx("Color3",500,0,"d",playerid);
}
public Color3(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer3);
ChangeVehicleColor(vehicleid,2,2);
Timer4 = SetTimerEx("Color4",500,0,"d",playerid);
}
public Color4(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer4);
ChangeVehicleColor(vehicleid,3,3);
Timer5 = SetTimerEx("Color5",500,0,"d",playerid);
}
public Color5(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer5);
ChangeVehicleColor(vehicleid,4,4);
Timer6 = SetTimerEx("Color6",500,0,"d",playerid);
}
public Color6(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer6);
ChangeVehicleColor(vehicleid,5,5);
SetTimerEx("Color1",500,0,"d",playerid);
}
Re: [HELP] FS -
MechaTech - 29.09.2012
Can you show us the errors?
Re: [HELP] FS -
scottygraham1990 - 29.09.2012
here are the errors
Re: [HELP] FS -
scottygraham1990 - 29.09.2012
Quote:
Originally Posted by MechaTech
Can you show us the errors?
|
Код:
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(26) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(28) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(38) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(40) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(49) : error 010: invalid function or declaration
C:\Users\Scott\Desktop\Utopia City FreeRoam\filterscripts\test.pwn(99) : warning 203: symbol is never used: "IsRainbow"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: [HELP] FS -
ikbenremco - 29.09.2012
Show us the error's lines.
Re: [HELP] FS -
scottygraham1990 - 29.09.2012
Quote:
Originally Posted by ikbenremco
Show us the error's lines.
|
i have m8
Re: [HELP] FS -
RaZzZzoR - 29.09.2012
pawn Код:
#include <a_samp>
new Timer1;
new Timer2;
new Timer3;
new Timer4;
new Timer5;
new Timer6;
new IsRainbow[MAX_PLAYERS];
forward Color1(playerid);
forward Color2(playerid);
forward Color3(playerid);
forward Color4(playerid);
forward Color5(playerid);
forward Color6(playerid);
forward Color7(playerid);
if(strcmp(cmdtext, "/rainbow", true)
{
if(!IsPlayerInAnyVehicle(playerid))
{
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
Timer1 = SetTimerEx("Color1",500,0,"d",playerid);
SendClientMessage(playerid,-1,"Rainbow car started! Use /rainbowoff to stop!");
IsRainbow[playerid] = 1;
return 1;
}
if(strcmp(cmdtext, "/rainbowoff", true)
{
KillTimer(Timer1);
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
SendClientMessage(playerid,-1,"You stopped the rainbow car!");
return 1;
}
public Color1(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer1);
ChangeVehicleColor(vehicleid,0,0);
Timer2 = SetTimerEx("Color2",500,0,"d",playerid);
}
public Color2(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer2);
ChangeVehicleColor(vehicleid,1,1);
Timer3 = SetTimerEx("Color3",500,0,"d",playerid);
}
public Color3(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer3);
ChangeVehicleColor(vehicleid,2,2);
Timer4 = SetTimerEx("Color4",500,0,"d",playerid);
}
public Color4(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer4);
ChangeVehicleColor(vehicleid,3,3);
Timer5 = SetTimerEx("Color5",500,0,"d",playerid);
}
public Color5(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer5);
ChangeVehicleColor(vehicleid,4,4);
Timer6 = SetTimerEx("Color6",500,0,"d",playerid);
}
public Color6(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer6);
ChangeVehicleColor(vehicleid,5,5);
SetTimerEx("Color1",500,0,"d",playerid);
}
Re: [HELP] FS -
ikbenremco - 29.09.2012
I mean show us line 26 till 99
Re: [HELP] FS -
xMCx - 29.09.2012
pawn Код:
#include <a_samp>
#include <zcmd>
new IsRainbow[MAX_PLAYERS];
new Timer1;
new Timer2;
new Timer3;
new Timer4;
new Timer5;
new Timer6;
forward Color1(playerid);
forward Color2(playerid);
forward Color3(playerid);
forward Color4(playerid);
forward Color5(playerid);
forward Color6(playerid);
forward Color7(playerid);
CMD:rainbow(playerid,params[])
{
if(!IsPlayerInAnyVehicle(playerid))
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
Timer1 = SetTimerEx("Color1",500,0,"d",playerid);
SendClientMessage(playerid,-1,"Rainbow car started! Use /rainbowoff to stop!");
IsRainbow[playerid] = 1;
return 1;
}
CMD:rainbowoff(playerid,params[])
{
KillTimer(Timer1);
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
SendClientMessage(playerid,-1,"You stopped the rainbow car!");
return 1;
}
public Color1(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer1);
ChangeVehicleColor(vehicleid,0,0);
Timer2 = SetTimerEx("Color2",500,0,"d",playerid);
}
public Color2(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer2);
ChangeVehicleColor(vehicleid,1,1);
Timer3 = SetTimerEx("Color3",500,0,"d",playerid);
}
public Color3(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer3);
ChangeVehicleColor(vehicleid,2,2);
Timer4 = SetTimerEx("Color4",500,0,"d",playerid);
}
public Color4(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer4);
ChangeVehicleColor(vehicleid,3,3);
Timer5 = SetTimerEx("Color5",500,0,"d",playerid);
}
public Color5(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer5);
ChangeVehicleColor(vehicleid,4,4);
Timer6 = SetTimerEx("Color6",500,0,"d",playerid);
}
public Color6(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer6);
ChangeVehicleColor(vehicleid,5,5);
SetTimerEx("Color1",500,0,"d",playerid);
}
this is with zcmd , download it if you dont have it
it compiled successfully but its not tested
good luck.
Re: [HELP] FS -
scottygraham1990 - 29.09.2012
Quote:
Originally Posted by ikbenremco
I mean show us line 26 till 99
|
here are the lines you asked for
pawn Код:
KillTimer(Timer3); //line 26
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
Timer1 = SetTimerEx("Color1",500,0,"d",playerid);
SendClientMessage(playerid,-1,"Rainbow car started! Use /rainbowoff to stop!");
IsRainbow[playerid] = 1;
return 1;
}
if(strcmp(cmdtext, "/rainbowoff", true)
{
KillTimer(Timer1);
KillTimer(Timer2);
KillTimer(Timer3);
KillTimer(Timer4);
KillTimer(Timer5);
KillTimer(Timer6);
SendClientMessage(playerid,-1,"You stopped the rainbow car!");
return 1;
}
public Color1(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer1);
ChangeVehicleColor(vehicleid,0,0);
Timer2 = SetTimerEx("Color2",500,0,"d",playerid);
}
public Color2(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer2);
ChangeVehicleColor(vehicleid,1,1);
Timer3 = SetTimerEx("Color3",500,0,"d",playerid);
}
public Color3(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer3);
ChangeVehicleColor(vehicleid,2,2);
Timer4 = SetTimerEx("Color4",500,0,"d",playerid);
}
public Color4(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer4);
ChangeVehicleColor(vehicleid,3,3);
Timer5 = SetTimerEx("Color5",500,0,"d",playerid);
}
public Color5(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer5);
ChangeVehicleColor(vehicleid,4,4);
Timer6 = SetTimerEx("Color6",500,0,"d",playerid);
}
public Color6(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
KillTimer(Timer6);
ChangeVehicleColor(vehicleid,5,5);
SetTimerEx("Color1",500,0,"d",playerid);
} //line 93 as there is no 99