SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/09/2014, 01:11 PM   #1
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default guys help please

i have errors from skin i will show now
Quote:
#define POLICE 1
#define Clivins 2

#define POLICE_COLOUR 0x003DF5AA
#define Clivins_COLOUR 0xFFFFFFF
Quote:
new gTeam[MAX_PLAYERS];
Quote:
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerTeamFromClass(playerid, classid);
return 1;
}
i get this errors
Quote:
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : error 001: expected token: ",", but found "-integer value-"
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : warning 215: expression has no effect
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(20) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
the line 20 this
PHP Code:
AddPlayerClass(266,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police 
And this all my skin
PHP Code:
AddPlayerClass(266,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(211,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(265,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(267,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(283,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(284,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(285,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,50 0); // Police
AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6 779,22,50,0,0,0,0); // medic 2
AddPlayerClass(50,2006.1929,2295.9451,10.8203,177. 4306,22,50,0,0,0,0); // Civilian
AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.90 30,22,50,0,0,0,0); // Civilian
AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.90 30,22,50,0,0,0,0); // Civilian
AddPlayerClass(12,2090.1008,2078.2600,10.8203,263. 0699,0,0,0,0,0,0);// Civilian
AddPlayerClass(23,2090.1008,2078.2600,10.8203,263. 0699,0,0,0,0,0,0);// Civilian
AddPlayerClass(29,2815.0498,2254.1252,10.8203,158. 6954,0,0,0,0,0,0); // Civilian
AddPlayerClass(294,2814.0542,2253.4043,10.8203,315 .9051,0,0,0,0,0,0); // Civilian
AddPlayerClass(214,2812.1963,2247.7256,10.8203,352 .8735,0,0,0,0,0,0); // Civilian
AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.40 12,0,0,0,0,0,0);// Civilian
AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4 012,0,0,0,0,0,0);// Civilian
AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4 012,0,0,0,0,0,0);// Civilian
AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.857 4,0,0,0,0,0,0);// Civilian
AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.857 4,0,0,0,0,0,0); // Civilian
AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.85 74,0,0,0,0,0,0);// Civilian
AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.85 74,0,0,0,0,0,0);// Civilian
AddPlayerClass(26,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(31,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(45,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(46,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2 378,0,0,0,0,0,0); // Civilian
AddPlayerClass(13,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(14,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(24,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(33,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(36,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(38,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(160,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(82,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(107,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(59,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(127,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(128,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(138,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(28,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(147,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(299,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(123,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(204,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(249,2193.7366,2007.4865,12.2894,358 .2378,15,1,15,500,28,500); // Civilian
AddPlayerClass(264,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(269,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(270,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(293,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian
AddPlayerClass(271,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(298,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian
AddPlayerClass(137,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian 
any help
nightday is offline   Reply With Quote
Old 03/09/2014, 01:15 PM   #2
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: guys help please

You have space in each class.
Stinged is offline   Reply With Quote
Old 03/09/2014, 01:23 PM   #3
BroZeus
High-roller
 
BroZeus's Avatar
 
Join Date: Jan 2014
Location: India
Posts: 1,398
Reputation: 173
Default Re: guys help please

the cause of error is the bold part -
Quote:
AddPlayerClass(266,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500);
change it to
Quote:
AddPlayerClass(266,2303.9497,2439.0103,3.2734,19.1234,3,1,22,50,29,500);
Note the space change
and do the same for other lines too
__________________


"Be the change that you wish to see in the world."

Check out my Github profile!
BroZeus is offline   Reply With Quote
Old 03/09/2014, 01:34 PM   #4
ScripteRNaBEEL
Huge Clucker
 
ScripteRNaBEEL's Avatar
 
Join Date: Jun 2013
Location: SomeWhere....
Posts: 318
Reputation: 41
Default Re: guys help please

pawn Code:
AddPlayerClass(284,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(285,2303.9497,2439.0103,3.2734,19.1 234,3,1,22,50,29,500); // Police
AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,50 0); // Police
AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6 779,22,50,0,0,0,0); // medic 2
AddPlayerClass(50,2006.1929,2295.9451,10.8203,177. 4306,22,50,0,0,0,0); // Civilian
AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.90 30,22,50,0,0,0,0); // Civilian
AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.90 30,22,50,0,0,0,0); // Civilian
AddPlayerClass(12,2090.1008,2078.2600,10.8203,263. 0699,0,0,0,0,0,0);// Civilian
AddPlayerClass(23,2090.1008,2078.2600,10.8203,263. 0699,0,0,0,0,0,0);// Civilian
AddPlayerClass(29,2815.0498,2254.1252,10.8203,158. 6954,0,0,0,0,0,0); // Civilian
AddPlayerClass(294,2814.0542,2253.4043,10.8203,315 .9051,0,0,0,0,0,0); // Civilian
AddPlayerClass(214,2812.1963,2247.7256,10.8203,352 .8735,0,0,0,0,0,0); // Civilian
AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.40 12,0,0,0,0,0,0);// Civilian
AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4 012,0,0,0,0,0,0);// Civilian
AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4 012,0,0,0,0,0,0);// Civilian
AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.857 4,0,0,0,0,0,0);// Civilian
AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.857 4,0,0,0,0,0,0); // Civilian
AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.85 74,0,0,0,0,0,0);// Civilian
AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.85 74,0,0,0,0,0,0);// Civilian
AddPlayerClass(26,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(31,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(45,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(46,2082.0784,2480.8333,10.8203,182. 0390,0,0,0,0,0,0);// Civilian
AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2 378,0,0,0,0,0,0); // Civilian
AddPlayerClass(13,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(14,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(24,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(33,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(36,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(38,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(160,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(82,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(107,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(59,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(127,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(128,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(138,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(28,2193.7366,2007.4865,12.2894,358. 2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(147,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(299,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(123,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(204,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(249,2193.7366,2007.4865,12.2894,358 .2378,15,1,15,500,28,500); // Civilian
AddPlayerClass(264,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(269,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(270,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(293,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian
AddPlayerClass(271,2193.7366,2007.4865,12.2894,358 .2378,0,0,0,0,0,0); // Civilian
AddPlayerClass(298,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian
AddPlayerClass(137,2193.5884,2007.4149,12.2894,355 .9373,0,0,0,0,0,0); // Civilian
now try
__________________
Visit NN Designs
ScripteRNaBEEL is offline   Reply With Quote
Old 03/09/2014, 01:37 PM   #5
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: guys help please

after i done all i get this errors
Quote:
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(739) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Documents and Settings\NightDay\Desktop\samp03z_svr_R1_win32\gam emodes\grandlarc.pwn(744) : warning 203: symbol is never used: "gTeam"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
this Frist Errors
Quote:
SetPlayerTeamFromClass(playerid, classid);
And This Last Errors nothings There in last Errors
nightday is offline   Reply With Quote
Old 03/09/2014, 02:09 PM   #6
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: guys help please

This is like the 5th time I've told you "You didn't follow the whole tutorial"
You're just not listening.. I'm going to stop replying.
Stinged is offline   Reply With Quote
Old 03/09/2014, 03:00 PM   #7
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: guys help please

Quote:
Originally Posted by Stinged View Post
This is like the 5th time I've told you "You didn't follow the whole tutorial"
You're just not listening.. I'm going to stop replying.
i see tutorial and its only 2 Class to i dont know every things and i get
PHP Code:
#define POLICE 1
#define Clivins 2

#define POLICE_COLOUR 0x003DF5AA
#define Clivins_COLOUR 0xFFFFFFF



new gTeam[MAX_PLAYERS]; 
From Tutorial to u know u are tell me the
PHP Code:
    SetPlayerTeamFromClass(playeridclassid); 
and i dont know every things but thanks
can somone help me
nightday is offline   Reply With Quote
Old 03/09/2014, 03:46 PM   #8
PMH
Huge Clucker
 
Join Date: Jun 2014
Location: Pakistan
Posts: 216
Reputation: 24
Default Re: guys help please

SetPlayerTeamFromClass must be a stock function if pawn says it's undefined
like stinged says, there much be full definition for SetPlayerTeamFromClass which u didn't copy pasted
__________________
PMH is offline   Reply With Quote
Old 03/09/2014, 03:54 PM   #9
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: guys help please

im bad from english to not know every things Stinged tell me but i try thanks,
nightday is offline   Reply With Quote
Old 03/09/2014, 04:01 PM   #10
nightday
Banned
 
Join Date: Aug 2013
Posts: 109
Reputation: 5
Default Re: guys help please

but no there any idea to be SetPlayerTeamFromClass to esey to know it to me there is SetPlayerTeamFromClass
With ID Skins to this problems not fix
nightday is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pls help me in this guys ProShooter22 Server Support 5 09/04/2013 12:03 PM
Guys pls help rohith Scripting Help 5 24/01/2012 02:07 PM
Help with this please (guys) [MKD]Max Scripting Help 0 31/08/2011 04:46 AM


All times are GMT. The time now is 12:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.