Gamemode warnings and textdraw problems !
#1

Hello i have alot of warnings and my palyerchooseclass textdraws staysforever! + it wont save score there is ladmin inside!
Warnings:
PHP код:
SATDM.pwn(2324) : warning 217loose indentation
SATDM
.pwn(2332) : warning 217loose indentation
SATDM
.pwn(2339) : warning 217loose indentation
SATDM
.pwn(6345) : warning 235: public function lacks forward declaration (symbol "givescore")
SATDM.pwn(10369) : warning 219local variable "div" shadows a variable at a preceding level
SATDM
.pwn(22300) : warning 219local variable "ppos" shadows a variable at a preceding level
SATDM
.pwn(22315) : warning 219local variable "ppos" shadows a variable at a preceding level
SATDM
.pwn(22484) : warning 217loose indentation
SATDM
.pwn(27742) : warning 219local variable "ppos" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase 
gamemode http://www.upload.ee/files/1265064/SATDM.pwn.html
i cant add it pastepin it is too big!
please help me
Reply
#2

I think that you should give us your code in pastebin, because pastebin can handle even Big GM's
Reply
#3

omg... my mistake... 33089 lines. Well, I get only 1 error:

PHP код:
C:\DOCUME~1\B-SpaCe\MYDOCU~1\DOWNLO~1\SATDM.pwn(25) : fatal error 100cannot read from file"Ldudb"
Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

so... I think that the problem is to your include files
Reply
#4

can you send includes what gamemode needs ?
Line 24: #include <a_samp>
Line 25: #include <Ldudb>
Line 26: #include <KZI>
Line 27: #include <streamer>
Line 28: #include <YSF>
Line 29: #include <zcmd>
Reply
#5

I use only these:

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <dini>
But as you can see I need Ldudb as include, which I don't have
Reply
#6

i dont understand ?
if i use these what you show cobiler will crash !
Reply
#7

how to get multible textdraws work ?

EDIT: srry doublepost
Reply
#8

... I don't know man, try asking another guy. Never saw a problem like yours
Reply
#9

textdaraws wont hide cause of that what is bolt and tehese what not bold wont hide

Quote:

//driftp
LoadTextDraws();
//--gamemode
TextDrawHideForPlayer(playerid, worker0);
TextDrawHideForPlayer(playerid, worker1);
TextDrawHideForPlayer(playerid, pimp0);
TextDrawHideForPlayer(playerid, pimp1);
TextDrawHideForPlayer(playerid, golfer0);
TextDrawHideForPlayer(playerid, golfer1);
TextDrawHideForPlayer(playerid, triad0);
TextDrawHideForPlayer(playerid, triad1);
TextDrawHideForPlayer(playerid, army0);
TextDrawHideForPlayer(playerid, army1);
TextDrawHideForPlayer(playerid, mechanic0);
TextDrawHideForPlayer(playerid, mechanic1);
TextDrawHideForPlayer(playerid, medic0);
TextDrawHideForPlayer(playerid, medic1);
TextDrawHideForPlayer(playerid, swat0);
TextDrawHideForPlayer(playerid, swat1);
TextDrawHideForPlayer(playerid, chicken0);
TextDrawHideForPlayer(playerid, chicken1);
TextDrawHideForPlayer(playerid, toreno0);
TextDrawHideForPlayer(playerid, toreno1);
TextDrawHideForPlayer(playerid, pilot0);
TextDrawHideForPlayer(playerid, pilot1);
TextDrawHideForPlayer(playerid, nang0);
TextDrawHideForPlayer(playerid, nang1);
TextDrawHideForPlayer(playerid, rules0);
TextDrawHideForPlayer(playerid, rules1);
TextDrawHideForPlayer(playerid, rules2);

Quote:

LoadTextDraws(){ // by Abhinav
TDLabels[0] = TextDrawCreate(Label_X,TD_Y,"Drift Points");
TextDrawColor(TDLabels[0],COLOR_Label);
TextDrawSetShadow(TDLabels[0],0);
TextDrawSetOutline(TDLabels[0],1);
TextDrawLetterSize(TDLabels[0],0.5,2);
TextDrawBackgroundColor(TDLabels[0],COLOR_LabelOut);
TextDrawFont(TDLabels[0],1);

TDLabels[1] = TextDrawCreate(Label_X,TD_Y+50,"Drift Bonus");
TextDrawColor(TDLabels[1],COLOR_Label);
TextDrawSetShadow(TDLabels[1],0);
TextDrawSetOutline(TDLabels[1],1);
TextDrawLetterSize(TDLabels[1],0.5,2);
TextDrawBackgroundColor(TDLabels[1],COLOR_LabelOut);
TextDrawFont(TDLabels[1],1);

TDLabels[2] = TextDrawCreate(Label_X,TD_Y+100,"Drift Cash");
TextDrawColor(TDLabels[2],COLOR_Label);
TextDrawSetShadow(TDLabels[2],0);
TextDrawSetOutline(TDLabels[2],1);
TextDrawLetterSize(TDLabels[2],0.5,2);
TextDrawBackgroundColor(TDLabels[2],COLOR_LabelOut);
TextDrawFont(TDLabels[2],1);

new i;
for(i=0;i<=MAX_PLAYERS;i++){
TDValueDrift[i]=TextDrawCreate(Value_X,TD_Y+20,"0");
TextDrawColor(TDValueDrift[i],COLOR_Value);
TextDrawSetShadow(TDValueDrift[i],0);
TextDrawSetOutline(TDValueDrift[i],1);
TextDrawLetterSize(TDValueDrift[i],0.5,2);
TextDrawBackgroundColor(TDValueDrift[i],COLOR_ValueOut);
TextDrawFont(TDValueDrift[i],3);

TDValueBonus[i]=TextDrawCreate(Value_X,TD_Y+70,"X1");
TextDrawColor(TDValueBonus[i],COLOR_Value);
TextDrawSetShadow(TDValueBonus[i],0);
TextDrawSetOutline(TDValueBonus[i],1);
TextDrawLetterSize(TDValueBonus[i],0.5,2);
TextDrawBackgroundColor(TDValueBonus[i],COLOR_ValueOut);
TextDrawFont(TDValueBonus[i],3);

TDValueCash[i]=TextDrawCreate(Value_X,TD_Y+120,"$0");
TextDrawColor(TDValueCash[i],COLOR_Value);
TextDrawSetShadow(TDValueCash[i],0);
TextDrawSetOutline(TDValueCash[i],1);
TextDrawLetterSize(TDValueCash[i],0.5,2);
TextDrawBackgroundColor(TDValueCash[i],COLOR_ValueOut);
TextDrawFont(TDValueCash[i],3);
}

return 1;
}

I GET SCORE SAVE BUT I HAVE TO EDIT ALL USER FILES :S
PLZ HELP ME FITH TEXTDRAWS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)