SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 152
Search took 0.01 seconds.
Search: Posts Made By: lukas567
Forum: Scripting Help 23/04/2012, 12:35 PM
Replies: 7
Views: 1,296
Posted By lukas567
Re: Line is too long

public ShowPlayerLevels(playerid, kamid)
{
new lvl[256], name[24], apie[50];
GetPlayerName(playerid, name, 24);
format(apie, sizeof(apie), "Informacija apie %s", name);
new s =...
Forum: Scripting Help 23/04/2012, 12:14 PM
Replies: 7
Views: 1,296
Posted By lukas567
Re: Line is too long

What's next? :/
Forum: Scripting Help 23/04/2012, 11:56 AM
Replies: 7
Views: 1,296
Posted By lukas567
Forum: Scripting Help 23/04/2012, 11:22 AM
Replies: 7
Views: 1,296
Posted By lukas567
Line is too long

How to reduce lenght of this line:

format(lvl, sizeof(lvl), "Stiprumo lygis: %i (%i/%i)\nVikrumo lygis: %i (%i/%i)\nProtingumo lygis: %i (%i/%i)\n\nTeisėsaugos lygis: %i (%i/%i)\nPirmos...
Forum: Scripting Help 19/04/2012, 02:13 PM
Replies: 2
Views: 575
Posted By lukas567
Easier way?

if(playerDB[playerid][Strlvl]==0)
{
str = 700;
}
else if(playerDB[playerid][Strlvl]==1)
{
str = 910;
}
else if(playerDB[playerid][Strlvl]==2)
{
Forum: Scripting Help 13/04/2012, 07:08 PM
Replies: 0
Views: 671
Posted By lukas567
Strange TextDraw...

http://i.imgur.com/ejejw.jpg

What symbol I have to use, to make that bright background of speedometer? Or maybe texture? Color doesn't have to be bright.

Thanks!
Forum: Scripting Help 11/04/2012, 01:20 PM
Replies: 6
Views: 1,197
Posted By lukas567
Re: else if or if?

Oh, so as everyone says "Will be easier to read" means, that it will be easier to read for programmer? Not for server?
Forum: Scripting Help 11/04/2012, 01:14 PM
Replies: 6
Views: 1,197
Posted By lukas567
Re: else if or if?

Space after if:

if (VariableSet)

It's some part of indentation? Will it cause less lag?
Forum: Scripting Help 11/04/2012, 12:53 PM
Replies: 6
Views: 1,197
Posted By lukas567
Re: else if or if?

But doesn't return 1; stops checking other variables?
Forum: Scripting Help 11/04/2012, 12:49 PM
Replies: 6
Views: 1,197
Posted By lukas567
else if or if?

Variant 1

if(VariableSet)
{
print("OK");
return 1;
}
if(!VariableSet)
{
print("Not OK");
Forum: Scripting Help 04/04/2012, 12:51 PM
Replies: 2
Views: 702
Posted By lukas567
Forum: Scripting Help 04/04/2012, 12:10 PM
Replies: 2
Views: 702
Posted By lukas567
Server turns off

public SlagDown(objectid)
{
if(objectid == VIPSlag[1])
{
RotateObject(VIPSlag[1],0, 90, 0, 3);
return 1;
}
if(objectid == VIPSlag[0])
{
RotateObject(VIPSlag[0],...
Forum: Scripting Help 03/04/2012, 07:08 PM
Replies: 3
Views: 691
Posted By lukas567
Re: tag mistmach?

Oh... I see... !=3 is needed with integers...

Well I'm making "Buddy" chat, so I need to check "Buddy" IDs...

Thanks! Respect!
Forum: Scripting Help 03/04/2012, 06:58 PM
Replies: 3
Views: 691
Posted By lukas567
tag mistmach?

if(!playerDB[playerid][BID]==3)

Sends "Tag mismach" warning...
Forum: Scripting Help 02/04/2012, 10:46 AM
Replies: 0
Views: 643
Posted By lukas567
ini var + strval

dini_IntSet(BaznAukos, name, dini_Int(Bazn, name) ++ strval(inputtext));

Errors:

C:\Documents and Settings\Lukas\Desktop\GRP4\GRP4\gamemodes\new.pwn(5199) : error 022: must be lvalue...
Forum: Scripting Help 02/04/2012, 06:46 AM
Replies: 0
Views: 604
Posted By lukas567
Pray anim

Is there something like pray animation? Or maybe it's possible to stop animation while it playing ant keep in that position?

Thanks!
Forum: Scripting Help 24/03/2012, 11:34 AM
Replies: 1
Views: 910
Posted By lukas567
NPC Anim

Hey!

public OnPlayerStreamIn(playerid)
{
SendCommand("/strip");
return 1;
}

This code, in NPC.pwn file should make NPC to dance, but it's not dancing...
Forum: Scripting Help 19/03/2012, 11:25 AM
Replies: 4
Views: 718
Posted By lukas567
ZCMD problems

Hello.

First problem:

CMD:get(playerid, params[])
{
if(sscanf(params, "u", player))
{
ShadInfoBoxForPlayer(playerid, "/get [who?]");
return 1;
Forum: Scripting Help 01/03/2012, 11:57 AM
Replies: 1
Views: 1,202
Posted By lukas567
inputtext[] returns wrong number

if(dialogid == 65)
{
if(response)
{
if(!IsNumeric(inputtext))
{
ShowPlayerDialog(playerid, 64, DIALOG_STYLE_INPUT, "Loan", "{FF0000}Write number!", "Ok", "");
return 1;
}...
Forum: Scripting Help 30/12/2011, 03:17 PM
Replies: 6
Views: 1,175
Posted By lukas567
Re: SetPlayerPos Forward

Doesn't work :(
Im making new system, that if you crash with a car you will teleport one point forward...
Forum: Scripting Help 30/12/2011, 02:49 PM
Replies: 6
Views: 1,175
Posted By lukas567
Re: SetPlayerPos Forward

Like this:

if (!strcmp(cmdtext, "/Test"))
{
new
Float:fPX, Float:fPY, Float:fPZ,
Float:fVX, Float:fVY, Float:fVZ,
Float:object_x, Float:object_y, Float:object_z;
const...
Forum: Scripting Help 30/12/2011, 01:34 PM
Replies: 15
Views: 1,874
Posted By lukas567
Re: What animation?

It falls backwards and on back...
Forum: Scripting Help 30/12/2011, 01:24 PM
Replies: 15
Views: 1,874
Posted By lukas567
Re: What animation?

No it looks like someone shoots at your stomach...
Forum: Scripting Help 30/12/2011, 01:18 PM
Replies: 15
Views: 1,874
Posted By lukas567
Re: What animation?

http://www.part.lt/img/38f2d9b0cfefd6c5f778adf6871e82d5526.png
http://www.part.lt/img/5b977f02ad2feb9263577656bc3313c0855.png
Forum: Scripting Help 30/12/2011, 01:15 PM
Replies: 15
Views: 1,874
Posted By lukas567
Re: What animation?

I need Animation like you fall from a bike
Showing results 1 to 25 of 152

 

All times are GMT. The time now is 05:56 PM.


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